BookmarkSubscribeRSS Feed
rrr123
Calcite | Level 5

I use Base SAS 9.3.

When using SOAP, the xml webdata is being outputted into one single xml tag with all the expected records and attributes.  Need to output in multiple tags to indicate records and attributes. to convert into a dataset of rows and columns. 

 

Since it outputs as a single xmltag, when converting to sas dataset, due to character field size limitations, even though I see all the records in the xml single tag dump, sas dataset truncates, so contains only a few records; not all from the xml extraction.

 

Where could the problem lie:

in the SOAP ENVELOPE?  HEADER IN?  am I to include HEADEROUT ALSO?  if so, what should be the content of HEADEROUT?

 

Shall greatly appreciate some wisdom in this regard; have been sitting on it for quite some time.

 

Thanks.

.

1 REPLY 1
statistician13
Quartz | Level 8
If you have access to IML, I'd recommend integrating your program with R and letting R parse out the returned XML data. Its abilities to parse XML and HTML are far superior in my view. Once you have a small program constructed in R, you can use IML to send the data back to SAS to complete your processing and analysis.

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
  • 1 reply
  • 661 views
  • 0 likes
  • 2 in conversation