References for using the XML engine

1

Included are some references for using the Libname XML Engine. This can be handy for writing and reading xml.

SAS Documentation on the XML Libname for 9.2: http://support.sas.com/documentation/cdl/en/engxml/61740/HTML/default/a002594363.htm

An example of exporting a SAS dataset using a custom tagset is located at:
http://support.sas.com/documentation/cdl/en/engxml/61740/HTML/default/a002975327.htm

The SAS User Group paper http://www2.sas.com/proceedings/sugi29/119-29.pdf also provides some examples, such as:
title1 'XML WORKSHOP EXERCISE #3';
libname out xml 'C:\workshop\ws119\XML\discharge_from_SAS.xml';
data out.discharge;
set discharge;
***let’s add in the date converted as today’s date and format it in ISO8601
***(yyyy-mm-dd) format;
xfer_date=today();
format xfer_date is8601da10.;
run;

Share

About Author

Angela Hall

Senior Technical Architect

Angela offers tips on using the SAS Business Intelligence solutions. She manages a team of SAS Fraud Framework implementers within the SAS Solutions On-Demand organization. Angela also has co-written two books, 'Building BI using SAS, Content Development Examples' & 'The 50 Keys to Learning SAS Stored Processes'.

1 Comment

Back to Top