Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: UNLOAD normal DB2 data(which is not in XML) into XML format?
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    Post subject:
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: 1278
Location: Belgium

PostPosted: Wed May 19, 2010 9:43 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us