View previous topic :: View next topic
|
Author |
Message |
Kisor
New User
Joined: 24 Jul 2003 Posts: 7
|
|
|
|
Hi,
Do you have any sample program for VSAM files conversion to DB2 Tables. Kindly give the site or information regarding this.
Regards,
S.Kisor Kumar |
|
Back to top |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
Hello Kisor,
Just look at the following url and let me know if this helps you.
DEAD LINK REMOVED.
Regards
Mayuresh |
|
Back to top |
|
|
Kisor
New User
Joined: 24 Jul 2003 Posts: 7
|
|
|
|
Hi,
Thanks for your reply. As the pdf it shows some utility Program for Vsam and DB2, but boss I require real COBOL coding Conversion.
Regards,
S.Kisor Kumar |
|
Back to top |
|
|
Rajesh S Warnings : 1 New User
Joined: 11 Jul 2007 Posts: 54 Location: Chennai
|
|
|
|
Hai Kisor,
Its very simple process man. First read the record from VSAM dataset
and move application variable to table variable Then give embedded sql
Insert syntax... Thats all....
With Regards
Rajesh.S |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Kisor -
We have a product that maps and converts VSAM to DB2: Programs, files and data.
For more info, please contact me in private.
O. |
|
Back to top |
|
|
Rajesh S Warnings : 1 New User
Joined: 11 Jul 2007 Posts: 54 Location: Chennai
|
|
|
|
Actually what you want? Records in the vsam cluster are write into DB2 table thru Map. Thats all ???
In your program..............
read <logical file name>
Move [application varible to Map varible]
Send the map.
Move [map varible to DB2 table varible]
insert into <table name> values (: table varibles)
Regards
Rajesh.S |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Migrating data from VSAM to DB2 is rather straightforward.
Quote: |
but boss I require real COBOL coding Conversion. |
This may not be. Many of the practices used to define VSAM files are not possible in DB2. Two of the biggest are the "OCCURS" and the "REDEFINES". Another issue is that while one just kept reading the vsam file, similar processes will be done with cursors in DB2. If more than 1 row is needed (which is very common) a simple SELECT will not work.
Converting VSAM code to DB2 code is not automatic. It is not hard, but it does take time. |
|
Back to top |
|
|
|