Help using Base SAS procedures

How to call URL API from SAS/WPS

Reply
Contributor
Posts: 34

How to call URL API from SAS/WPS

[ Edited ]

%let url= " " ;
filename in "C:\Users\anita.pamu\Desktop\In.txt";
filename out "C:\Users\anita.pamu\Desktop\Out.txt" recfm=v lrecl=32000;
proc http in=in out=out url="&url" method="post" ct="application/x-www-form-urlencoded" ;
run;

Super User
Posts: 7,758

Re: How to call URL API from SAS/WPS

Posted in reply to anitapamu2

And what is your problem?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 34

Re: How to call URL API from SAS/WPS

[ Edited ]
Posted in reply to KurtBremser

How to call Web service  (Url) form SAS ? I am using 9.2 Windows Base SAS.

 

ERROR: Cannot load SSL support.

Here is an example of code that can trigger the error.


filename myref url "https://www.google.com";
data _null_;
infile myref;
run;
Super User
Posts: 7,758

Re: How to call URL API from SAS/WPS

Posted in reply to anitapamu2

You already have code. What happened when you tried it, and how did the outcome not match your expectations? (Log!!)

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Posts: 7,758

Re: How to call URL API from SAS/WPS

Posted in reply to anitapamu2

anitapamu2 wrote:

How to call Web service  (Url) form SAS ? I am using 9.2 Windows Base SAS.

 

ERROR: Cannot load SSL support.


Googling for that error message got me this SAS Note as the second result:

http://support.sas.com/kb/57/595.html

You may not have the proper module installed.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Community Manager
Posts: 2,952

Re: How to call URL API from SAS/WPS

Posted in reply to KurtBremser

Use PROC HTTP instead.  I have many examples:

 

   http://blogs.sas.com/content/sasdummy/tag/proc-http/

 

But you will need the SSL components in order to access any HTTPS sites.

Ask a Question
Discussion stats
  • 5 replies
  • 214 views
  • 0 likes
  • 3 in conversation