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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -