BookmarkSubscribeRSS Feed
AsakoOkano
Fluorite | Level 6

Hi

My team have SAS9.4 Environment. And our team save all SAS progrem files, EGPs, STPs even SAS data sets in SAS Folder.
For maintainance reson , I wold like to create object list that show us which files are saved in which folders like that. But since so many objects are saved in so many diffrent folders, open and check each SAS Folders takes me so many times and that is too inefficient.
Is there any way or any specific proceadure to export contents list that saves in SAS Folders at once?

thanks

 

1 REPLY 1
ShiroAmada
Lapis Lazuli | Level 10

Try this...

 

filename DirSubs pipe "dir /s /b E:\SAS9\";

data FILELIST;
  infile dirsubs;
  input Filename: $200.;
run;

Hope this helps.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 699 views
  • 0 likes
  • 2 in conversation