BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
GeorgeBonanza
Quartz | Level 8

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.  

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
   Filename filelist pipe "ls -l"; 
                                                                                   
   Data _null_;                                        
     Infile filelist truncover;
     Input filename $100.;
     Put filename=;
   Run; 

View solution in original post

3 REPLIES 3
Reeza
Super User
X commands are usually turned off on EG, but if they're not in your environment something like the following will work.
Reeza
Super User
   Filename filelist pipe "ls -l"; 
                                                                                   
   Data _null_;                                        
     Infile filelist truncover;
     Input filename $100.;
     Put filename=;
   Run; 
GeorgeBonanza
Quartz | Level 8

This works well.  Thanks for your help.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 5001 views
  • 3 likes
  • 2 in conversation