BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
1 REPLY 1
deleted_user
Not applicable
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

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!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 795 views
  • 0 likes
  • 1 in conversation