BookmarkSubscribeRSS Feed
AmeCath_23
Calcite | Level 5

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.

4 REPLIES 4
ballardw
Super User

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.

AmeCath_23
Calcite | Level 5

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.

andreas_lds
Jade | Level 19

And when you have the list, what are the next steps?

Quentin
Super User

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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1105 views
  • 0 likes
  • 4 in conversation