SAS - Write filenames to a dataset, or to an external file? -
is there way, in sas, grab filenames (.txt files) directory (e.g. c:\temp) , write them dataset? or possibly write them separate .txt. file?
i'm trying find examples online haven't been able locate anything.
the simplest way named pipe
, can read from.
eg:
filename mydir pipe 'dir c:\temp\*.txt /b'; data mydata; infile mydir lrecl=150 truncover; input @1 line $150.; run;
Comments
Post a Comment