Importing an empty CSV file in SAS -


i'm trying import series of csv files macro loops thru files in given folder.but, there empty csv files in folder exclude loop. there way in sas find csv file size ?

proc import out=&output             datafile= "&input"             dbms=csv replace;      getnames=yes;      datarow=2;         *guessingrows=32000; run; 

thanks, sam.

here's away in datastep:

filename fileref 'c:\date.tmp'; data a; infile fileref truncover; fid=fopen('fileref'); bytes=finfo(fid,'file size (bytes)');                                                                                   crdate=finfo(fid,'create time'); moddate=finfo(fid,'last modified'); input var1 $20.; run; 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -