Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
UTILITY to load data that is unloaded by other DB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
vinay_care

New User


Joined: 22 Sep 2006
Posts: 17

PostPosted: Fri Jan 23, 2009 4:08 pm    Post subject: UTILITY to load data that is unloaded by other DB
Reply with quote

hi,

Ineed to load data to a table in DB2 that is unloaded from other DB say oracle DB and it has a different timestamp format, without colon...so how would i do it?
Is thr anyway i can takecare while loading in simple manner.
I mean my table supports with colon, and I need to load having colon,
please suggest.

Thanks,
Vinay
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Fri Jan 23, 2009 4:13 pm    Post subject:
Reply with quote

You can use SORT product for whatever formatting to be done on unloaded dataset before loading.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Jan 23, 2009 4:28 pm    Post subject:
Reply with quote

you could also format the data properly with the initial unload.
Back to top
View user's profile Send private message
vinay_care

New User


Joined: 22 Sep 2006
Posts: 17

PostPosted: Fri Jan 23, 2009 5:23 pm    Post subject:
Reply with quote

Can I format in the same step? and how? or should i use another step of sort or outrec options, please suggest.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Jan 23, 2009 6:47 pm    Post subject:
Reply with quote

Oracle is rather sophisticated. I would be suprised if the unload utility for oracle does not have an option for unloading for MS-SQL or DB2 format.

otherwise, use sql in the unload to reformat your timestamp with a colon.

I would speak to whoever maintains your other database system.
Back to top
View user's profile Send private message
vinay_care

New User


Joined: 22 Sep 2006
Posts: 17

PostPosted: Fri Jan 23, 2009 7:33 pm    Post subject:
Reply with quote

dbzTHEdinosauer wrote:
Oracle is rather sophisticated. I would be suprised if the unload utility for oracle does not have an option for unloading for MS-SQL or DB2 format.

otherwise, use sql in the unload to reformat your timestamp with a colon.

I would speak to whoever maintains your other database system.



how to use sql in the unload, when still I haven't loaded, do you mean after loading into table and then change the data? plz suggest
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts NULLFILE on ICEGENER Utility Ashishpanpaliya DFSORT/ICETOOL 5 Wed Nov 08, 2017 10:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us