IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Program for VSAM files conversion to DB2 Tables


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Kisor

New User


Joined: 24 Jul 2003
Posts: 7

PostPosted: Fri Aug 01, 2003 9:53 am
Reply with quote

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
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Sat Aug 02, 2003 12:56 pm
Reply with quote

Hello Kisor,

Just look at the following url and let me know if this helps you.


DEAD LINK REMOVED.


Regards

Mayuresh
Back to top
View user's profile Send private message
Kisor

New User


Joined: 24 Jul 2003
Posts: 7

PostPosted: Mon Aug 04, 2003 6:03 pm
Reply with quote

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
View user's profile Send private message
Rajesh S
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 54
Location: Chennai

PostPosted: Tue Jul 24, 2007 10:56 am
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jul 24, 2007 12:20 pm
Reply with quote

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
View user's profile Send private message
Rajesh S
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 54
Location: Chennai

PostPosted: Tue Jul 24, 2007 2:17 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 24, 2007 7:20 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts 10 byte RBA conversion DB2 2
Search our Forums:

Back to Top