I would like to change read/write permission for some folders I have on a server. I know that I can use x commands in SAS EG to do this and commands like
x cd '/filepath/';
and
x pwd;
both run and print output to the log. However, when I try to run
x ls -l;
so I can see the current permissions of folders in the directory, nothing prints to the log. Conceptually, this is all new to me so I am sure I am missing something simple.
Thanks in advance for your help.
Filename filelist pipe "ls -l";
Data _null_;
Infile filelist truncover;
Input filename $100.;
Put filename=;
Run;
Filename filelist pipe "ls -l";
Data _null_;
Infile filelist truncover;
Input filename $100.;
Put filename=;
Run;
This works well. Thanks for your help.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.