BookmarkSubscribeRSS Feed
Miracle
Barite | Level 11

Hi there.

May I know if anyone is able to share the code/macro that has been written before by someone to automate the backup of files(SAS programs, datasets, log files, output files)?

As such that it will create a new folder with the date of the backup being done and move all the files from directory A into it?

Thank you in advance.

5 REPLIES 5
SASKiwi
PROC Star

You would be better off using a tool designed specifically for backups. If you are talking about SAS server folders then these are probably backed up automatically anyway. If you are talking about a PC then ask about the tools your company uses with your IT folks.

 

For PCs, Windows Explorer is an easy way to create backups of local drives.

Miracle
Barite | Level 11

Hi @SASKiwi, thank you for your reply.

 

And my apologies for not making it clear in the first place.

Yes, it is the latter the PC. 
May I know if there is any step-by-step instruction using Windows Explorer online?

Thank you in advance. 

SASKiwi
PROC Star

Windows Explorer could hardly be any easier. Right-click on a source folder and select Copy. Right- click on a target folder or drive, select Paste. If you need more help just Google: Windows Explorer copy folder.

Miracle
Barite | Level 11

@SASKiwi I see! My brain must be dead at the time. Thanks Smiley Very Happy 

SASKiwi
PROC Star

@Miracle - No problem, always happy to help!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 5 replies
  • 1029 views
  • 5 likes
  • 2 in conversation