02-06-2013 07:59 AM
I am trying to create a dataset of the library contents that will just show me the dataset name and the owner name.
It seems really simple but I think I must be missing something.
Any ideas welcome
02-06-2013 08:35 AM
filename inf pipe "ls -l &root" Lrecl=200;
data file_info (drop= txt) ;
infile inf lrecl=200 truncover ;
input txt $char200. ;
if index(txt,'>') >=1 or index(txt,'<') >=1 then delete ;
user_id=scan(txt,3,' ') ;
on windows..you could replace the pipe command to a dos and parse the results ( I think it is dir /s/q "c:\")
02-06-2013 09:28 AM
actually, the code is submitted from a sas program node within EG. Which syntax you use depends on where your SAS is actually running. If you use EG on Windows and sas is installed locally, then you would use the windows syntax. If you use EG and your sas runs remotely on an unix server, then you would use the unix syntax.