How can I insert the file name in a sas dataset from an external file

Reply
Occasional Contributor
Posts: 12

How can I insert the file name in a sas dataset from an external file

An external file has some *.rtf files, I want to setup a sas dataset save all the rtf file names. How can I do?
Super Contributor
Super Contributor
Posts: 3,174

Re: How can I insert the file name in a sas dataset from an external file

Several SAS options, including PROC IMPORT and a DATA step. See the SAS SUGI/SGF paper which I found by searching at the SAS support site URL http://support.sas.com/ if interested.

Scott Barry
SBBWorks, Inc.

http://www2.sas.com/proceedings/sugi28/074-28.pdf
Occasional Contributor
Posts: 12

Re: How can I insert the file name in a sas dataset from an external file

Thanks very much!

I am sorry and maybe I didn't describe the question clearly.

There are some *.rtf files in a folder. I want to setup a dataset contains all the names of the rtf files in the folder.
Esteemed Advisor
Posts: 5,198

Re: How can I insert the file name in a sas dataset from an external file

There is a similar thread in the "SAS programming" forum:

http://support.sas.com/forums/thread.jspa?threadID=3679&tstart=0

/Linus
Data never sleeps
Ask a Question
Discussion stats
  • 3 replies
  • 378 views
  • 0 likes
  • 3 in conversation