MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

vsam to db2

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
arv
Beginner


Joined: 30 Mar 2003
Posts: 13
Topics: 11

PostPosted: Tue Apr 01, 2003 9:30 am    Post subject: vsam to db2 Reply with quote

hi all,

I would like to have the coding for moving data from vsam to db2 table.If there are any utilities or tools kindly explain in detail.


thanking you,


with regards,

arv.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Apr 01, 2003 1:00 pm    Post subject: Reply with quote

Arv,

First you need to REPRO the vsam file to a flat file and then load the flat file into the table provided that the table is created based on the vsam file layout.

Check this link for a detailed explanation and examples of REPRO

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT1V402/3.25?DT=19951025222737

Check this link for a detailed explanation and examples of DB2 utility LOAD

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNUGH11/2.12?DT=20010719144747

In the other scenario where you want to move the data from db2 table to a vsam cluster then you need to UNLOAD the db2 table and then REPRO it back to the vsam file.

Check this link for detailed explanation and examples of DB2 utility UNLOAD

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPH11/APPENDIX1.3.1?DT=20010710165542

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group