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: 1280
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm


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