BookmarkSubscribeRSS Feed
alepage
Barite | Level 11

Hello,

 

Here's the situation...

When I execute the code below, I am getting an xml file (see the partial file below).

 

The root element is TABLE and instances of element are CLASS.

Is there a nice and simple way to change TABLE for ROWSETS and CLASS for ROW.

 

Regards,

 

***********************************************************************************************************************

 

libname export xml "\\...\Documents\Test\Temp\class.xml";

Data Temp;

set sashelp.class;

run;

data export.class;

set sashelp.class;

run;

 

/* Here's the partial content of the xml file

The root element is TABLE and instances of element are CLASS

 

<?xml version="1.0" encoding="windows-1252" ?>

<TABLE>

<CLASS>

<Name> Alfred </Name>

<Sex> M </Sex>

<Age> 14 </Age>

<Height> 69 </Height>

<Weight> 112.5 </Weight>

</CLASS>

<CLASS>

<Name> Alice </Name>

<Sex> F </Sex>

<Age> 13 </Age>

<Height> 56.5 </Height>

<Weight> 84 </Weight>

</CLASS>

*/

 

 

 

1 REPLY 1

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1035 views
  • 0 likes
  • 2 in conversation