BookmarkSubscribeRSS Feed
alam_ather
Calcite | Level 5

 

I am trying to access data from web and as a learning wrote following code into SAS EG:

 

filename seercode URL "https://www.google.com";
data siterecode;
infile seercode truncover;
input @1 bigline $char256.;
run;

 

Unfortunately, encountered following error, can anyone please suggest best way to resolve this issue:

 

NOTE: Unable to connect to host www.google.com. Check validity of host name.
ERROR: Hostname www.google.com not found.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.SITERECODE may be incomplete. When this step was stopped there were 0
observations and 1 variables.
WARNING: Data set WORK.SITERECODE was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 2.46 seconds
cpu time 0.04 seconds

 

 

Thanks

 

2 REPLIES 2
Patrick
Opal | Level 21

Your code works for me with SAS installed locally on my laptop. Could it be that your SAS server where your code gets executed doesn't have Internet access?

BrunoMueller
SAS Super FREQ

You might need a PROXY definition on the FILENAME statement.

 

I would also use the DEBUG option on the FILENAME statement, this might give you more information as well

See https://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p103pi2vrzn6qh... for more details.

 

Bruno

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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