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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 1293 views
  • 0 likes
  • 2 in conversation