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: 6968
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: 1281
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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