BookmarkSubscribeRSS Feed
katariasarthak
Obsidian | Level 7

Hi,

I have a XML file in SAS DI, and I want to run the same file to create a map and simultaneously change the <P_OFF> 0 </P_OFF> to <P_OFF> 1000 </P_OFF>  and respectively till 200,000.

 

Can the same thing be done using XML writer?

 

Thanks in advance.

 

1 REPLY 1
RonAgresta
SAS Employee

Hi - 

 

The XML Writer transformation does not have the ability to transform data as part of the transformation itself. You will need to read the XML file in through a DI Studio job (XML libname engine), write some transformation code to change the values, then use the XML Table Writer to output the XML file. 

 

More information about the XML Writer transformation can be found here.

 

Ron

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!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

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