Help using Base SAS procedures

Copy data sets and retain the original date/time stamp

Reply
Occasional Contributor Rik
Occasional Contributor
Posts: 12

Copy data sets and retain the original date/time stamp

Hi,

 

Im looking for a way to copy over SAS data sets from one location to another location and keep the original date//time stamp.

Using proc copy or proc datasets will modify this time stamp with the date/time of execution. 

I ould like to avoid this.

 

Thanks in advance!

Respected Advisor
Posts: 3,124

Re: Copy data sets and retain the original date/time stamp

In this case, you could try using OS command from within SAS. Check 'SYSTASK COMMAND'  OR 'X' COMMAND. Without knowing your SAS enviroment (windows/linux ect), specific code can't be provided.

 

Haikuo

Trusted Advisor
Posts: 1,631

Re: Copy data sets and retain the original date/time stamp

Use PROC COPY with the DATECOPY option.

Ask a Question
Discussion stats
  • 2 replies
  • 313 views
  • 0 likes
  • 3 in conversation