BookmarkSubscribeRSS Feed
x97mdr
Calcite | Level 5
Hello all,

I have done some research and discovered that SAS can interact with SOAP-based XML WEB Services, however I am looking at developing a REST-based architecture. We want to be able to read a string that is returned by visiting a URL into a SAS dataset and then using that string to determine what data to download.

I asked this question in a separate post and the response was to use FILENAME URL to read from the link. I tried this but it seemed unreliable in that it only worked for my test string if the record length was set to <= record length and the record format was fixed. Varying length records didn't seem to work.



What I'm wondering is if anyone else has tried to utilise a REST architecture with SAS and what has their experience been? I would also like to know how to process XML data received from a REST request?
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Due to some known limitations with the discussion forum software, your post was truncated. Suggest you re-post as a reply here and provide SAS code and SASLOG excerpts, where the results observed are not what you expect, when using a SAS DATA step and the FILENAME URL engine.

Scott Barry
SBBWorks, Inc.
x97mdr
Calcite | Level 5
Thanks Scott. I did not know about the limit on post length

My examples are at work and I'm at home today so I will post them on Monday
Zach_sas
SAS Employee
You might try looking at proc http which is new in 9.2 Phase 2.

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a003286796.htm
reneeharper
SAS Employee
I checked your post (being the Admin let's me do these things). The problem isn't lenght. It is the fact that you used the less than + equals together. It was seen as an HTML tag. Try encoding using &lt;. It will look like < =

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 797 views
  • 0 likes
  • 4 in conversation