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

DB2 to VSAM convertion


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

New User


Joined: 26 May 2006
Posts: 35
Location: india

PostPosted: Tue Aug 05, 2008 5:39 pm
Reply with quote

Hi All,

If I am converting the DB2 code which is having the JOIN statements in it and I want to convert it to VSAM statement how can I go about it.

Thanks & Regards,
RDR.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Aug 05, 2008 5:47 pm
Reply with quote

You can't unless you are going to convert the DB2 tables to VSAM files. Don't even think about trying to bypass DB2 to get at the tables.
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Tue Aug 05, 2008 6:08 pm
Reply with quote

if you are trying to replicate the scenario of fetching data from 2 tables by joining them then you will have to read one VSAM file and use the keys to get the rest details form the other file ...
Back to top
View user's profile Send private message
rdr

New User


Joined: 26 May 2006
Posts: 35
Location: india

PostPosted: Wed Aug 06, 2008 11:04 am
Reply with quote

Hi Craq,

Yes we are going to have VSAM file structure corresponding to that of DB2 view. And as Ashmir told we can use Primary key to read the file and write into A New File.

Thanks & Regards.
RDR.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Aug 07, 2008 6:41 am
Reply with quote

ug, Going back to VSAM from DB2, yuck
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: Thu Aug 07, 2008 7:04 am
Reply with quote

Hello,

Has anyone explained how this decision was reached?
Back to top
View user's profile Send private message
rdr

New User


Joined: 26 May 2006
Posts: 35
Location: india

PostPosted: Mon Aug 11, 2008 5:06 pm
Reply with quote

Hi All,

There are few legacy DB2 Tables which are not going to be updated in future.
There is a change in Key feild of these tables.
The key lenght is going to be increased in case of VSAM for selected DB2 view.
These VSAM data are needed further down in the batch system.
So new copy book has to be created for the same.

Regards,
Rdr.
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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
Search our Forums:

Back to Top