BookmarkSubscribeRSS Feed
deltron
Fluorite | Level 6

Running 9.4 M3

 

I'm reading through this intro to PROC HTTP,

https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3232-2019.pdf

 

My goal is to use it, among other things, to validate URLs we create with newly published data and tech docs, to ensure none of them are "dead".

 

The initial code is running successfully with no errors, alas I don't know how to see the output the paper is referencing.

 

Woe is me. Merciful SAS lords, please elucidate the error of my ways.

 

Regards,

 

sas.PNG

 

 

2 REPLIES 2
bnawrocki
Quartz | Level 8

Well, since you defined both filenames as TEMP, you can see from your log that SAS saved them in its temporary work-space folder. If you navigate through File Explorer (and you the option of hidden files set to Visible, in order to see the AppData folder), you will see those files, but they will be named something like #LN00041, which won't be very useful to you.

 

Drop the passive approach, and try the active approach -- tell SAS where you want those files to be stored, and give them a useful name by changing your filename statements to something like this:

filename hdrs 'c:\temp\headers.txt';
Tom
Super User Tom
Super User

Huh?

The log is telling you where to look. What kind of file did you write to HDRS? If nothing else take a look at it in by dumping it (or some of it) to the SAS log.

data _null_;
  infile hdrs obs=10;
  input;
  put _infile_;
run;

If you want to know where it is ask SAS to tell you:

%let filename=%sysfunc(pathname(hdrs));

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 496 views
  • 0 likes
  • 3 in conversation