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

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -