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));

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 628 views
  • 0 likes
  • 3 in conversation