I'm currently facing a challenge with SAS files, specifically regarding downloading a directory of SAS files and listing all the files in a folder. I'm relatively new to SAS, and I would greatly appreciate some guidance on this matter.
What type of files? Data sets? Programs? Catalogs?
If it is data sets or catalogs then assigning a LIBRARY to the folder and using Proc Contents will list the files.
Download from where? To where? Local network, web site, local hard drive. Each location type can require different tools and has different limitations. The version of SAS can have an impact as well as the SAS On Demand for Academics for example has different behavior for moving files from a local SAS install.
The type of files I'm looking to download and manage are data sets and programs. I appreciate your insight into the process, especially when it comes to data sets and catalogs. To provide more context, I'll be downloading these files from a web-based location and saving them to my local hard drive. I understand that different tools and approaches might be required depending on the source and destination.
And when you have the list, what are the next steps?
Are you using SAS installed on your local hard drive ("PC SAS")? Or are you using SAS on a server via Enterprise Guide or Studio?
If you're talking about downloading files from the web, are you thinking use REST API's for download? It would help to have a clear example of the source you're downloading from. As you say, approaches will vary by source.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.