This post was kindly contributed by real business intelligence for real users - go there to comment and to read the full post. |
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;
This post was kindly contributed by real business intelligence for real users - go there to comment and to read the full post. |