BookmarkSubscribeRSS Feed
Enio
Fluorite | Level 6

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;
3 REPLIES 3
ballardw
Super User

Have you tried using the X command to send commands directly to the operating system?

Enio
Fluorite | Level 6

Hi, yes I have. Identical issues there as well.

ballardw
Super User

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??

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 3 replies
  • 3235 views
  • 0 likes
  • 2 in conversation