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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 596 views
  • 0 likes
  • 2 in conversation