IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

UNLOAD normal DB2 data(which is not in XML) into XML format?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
javvajiram

New User


Joined: 26 Nov 2007
Posts: 4
Location: chennai

PostPosted: Wed May 19, 2010 4:49 pm
Reply with quote

We have a requirement to UNLOAD Normal data(which is not in XML format) from DB2 tables into file in XML foramt using UNLOAD utility.

Is there any feature for UNLOAD utility to directly unload normal data into XML format ?

I have referred many sites but couldn't find any clue.

Can any one help me in this regard.


Thanks in advance.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed May 19, 2010 4:51 pm
Reply with quote

why don't you look at the UNLOAD utility's documentation?
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Wed May 19, 2010 9:43 pm
Reply with quote

don't think unload will help you here .
you might try something with dsntiaul
and a sql statement like :
if total length < 32K
Code:
select xmlagg(xmlelement(NAME "ROW",xmlforest(name as xnam,creator as xcrea,dbid as xdbid))) from sysibm.sysdatabase a

else
Code:
select xmlelement(NAME "ROW",xmlforest(name as xnam,creator as xcrea,dbid as xdbid)) from sysibm.sysdatabase a


you probably need some dfsort or idcams manipulation afterwards
Back to top
View user's profile Send private message
javvajiram

New User


Joined: 26 Nov 2007
Posts: 4
Location: chennai

PostPosted: Thu May 20, 2010 10:26 am
Reply with quote

Thanks a lot for your quick reply.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top