Hi experts,
I have a sas table like "xxx.sas7bdat", and i want to generate a xml file. can i do this directly using proc export?
proc export data=personal.xxx
outfile="/sasdatos/xml_file"
dbms= ??? replace;
quit;
or i have to do other step and then generate the xml file ?
Thks!
LIBNAME XMLV2 most likely.
libname myXml xmlv2 '/home/fkhurshed/Demo1.xml';
proc copy in=sashelp out=myXml;
select class;
run;
libname myXml;
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/n0x0j8m1awgbcxn1pz3a3lc3tta4.htm
If you need to have a custom map, see the left hand side of the docs on how to export using an xml map.
@Jose7 wrote:
Hi experts,
I have a sas table like "xxx.sas7bdat", and i want to generate a xml file. can i do this directly using proc export?
proc export data=personal.xxx
outfile="/sasdatos/xml_file"dbms= ??? replace;
quit;
or i have to do other step and then generate the xml file ?
Thks!
LIBNAME XMLV2 most likely.
libname myXml xmlv2 '/home/fkhurshed/Demo1.xml';
proc copy in=sashelp out=myXml;
select class;
run;
libname myXml;
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/n0x0j8m1awgbcxn1pz3a3lc3tta4.htm
If you need to have a custom map, see the left hand side of the docs on how to export using an xml map.
@Jose7 wrote:
Hi experts,
I have a sas table like "xxx.sas7bdat", and i want to generate a xml file. can i do this directly using proc export?
proc export data=personal.xxx
outfile="/sasdatos/xml_file"dbms= ??? replace;
quit;
or i have to do other step and then generate the xml file ?
Thks!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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 save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.