BookmarkSubscribeRSS Feed
emcee825
Calcite | Level 5

Hello,

I've tried looking around for quite a bit to piece together whether this question had already been asked (and answered) on SAS Communities or to see if there were any appropriate articles written and have been getting frustrated with it. Please excuse any redundancy or ignorance with the following question and if this is being asked in the wrong subcommunity.

I'm trying to develop some code where I can run it and have it download data from a data warehouse via a website that requires my login credentials for access. My gut tells me that this shouldn't be a complicated process. I've seen a lot of things about CURL in articles that I've read-- is this something that should be used for this situation? What proc would be used for something like this?

Thank you, really appreciate any guidance on this!

2 REPLIES 2
ChrisHemedinger
Community Manager

Hi, I suggest trying PROC HTTP.  It supports Basic Authentication (user ID and password) with the WEBUSERNAME and WEBPASSWORD options, and you can use it to download content from a web site.  I have some examples of using PROC HTTP here, although my examples don't show the authentication bit.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
emcee825
Calcite | Level 5

Thanks, Chris! This is the clearest direction I've received thus far, even with looking on my own.

One more question for you, then, if that's ok: not only do I need to give authentication, I also need to specify some criteria upon which to pull the data. Would I go through all these steps then copy and paste the URL that's in the browser into the "url" bit in PROC HTTP? I apologize if these questions seem a bit elementary!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 931 views
  • 0 likes
  • 2 in conversation