Hi,
I'm trying to submit the following code where I need to copy the file "sample.sas" from one folder to another whilst preserving the owner of the file. It executes without error and copies the file, but it changes the owner despite having the '-p' statement.
Any ideas - am I missing something?
filename copy pipe "cp -p /team/dave/sample.sas /team/marc ";
data error;
file copy;
run;
Have you tried using the X command to send commands directly to the operating system?
Hi, yes I have. Identical issues there as well.
Here's something to think about. If you are using a SERVER version of SAS the code is executed by the server. Perhaps the owner is the Server running SAS??
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.
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.