Operations Research topics: SAS/OR,
SAS Optimization, and SAS Simulation Studio

Is it possible to convert SAS Datasets to XML?

Reply
N/A
Posts: 0

Is it possible to convert SAS Datasets to XML?

Hi All,

I would like to know as how to convert SAS datasets to XML with SAS 8.2. Ist it possible with 8.2 or I need to have a XML engine?
Can someone give out the solution.

Thanks,
Priya
N/A
Posts: 0

Re: Is it possible to convert SAS Datasets to XML?

the best solution is to upgrade to SAS9

the simplest solution works like:[pre]
libname yourxm xml 'your.xml' ;
proc copy in= sashelp out= yourxm mt= data;
select class ;
run;
libname yourxm clear ;[/pre]
You could create your data set directly in the xml library, but it seems more normal, to just copy them from wherever. For that, proc copy seems simplest.

The XML engine delivered with SAS8.2 is a bit basic, but exists. There is an improved version available for download from the http://support.sas.com/index.html website. (but that isn't the simplest solution, nor the "best" ;-)


PeterC
Ask a Question
Discussion stats
  • 1 reply
  • 184 views
  • 0 likes
  • 1 in conversation