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
 

 

Program for VSAM files conversion to DB2 Tables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Program for VSAM files conversion to DB2 Tables
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: 238
Location: USA

PostPosted: Sat Aug 02, 2003 12:56 pm    Post subject:
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    Post subject: VSAM-DB2
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Jul 24, 2007 12:20 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Jul 24, 2007 7:20 pm    Post subject:
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    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 Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am


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