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.
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.
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.
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.
@SASKiwi I see! My brain must be dead at the time. Thanks
@Miracle - No problem, always happy to help!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.