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

VSAM access faster than DB2 access


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vighnesh_r

New User


Joined: 23 Aug 2006
Posts: 14

PostPosted: Tue Mar 25, 2008 12:08 pm
Reply with quote

Hi,

Can anyone please tell me which access method will be better ... accessing data from VSAM or from DB2.

Any supporting document, links will also be very helpful icon_smile.gif
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Tue Mar 25, 2008 5:48 pm
Reply with quote

The answer is and will always be "It depends on too many shop specific factors to give you the correct answer for your situation"
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Tue Mar 25, 2008 6:18 pm
Reply with quote

This link might give some ideas about Why DB2 is better than VSAM...
Back to top
View user's profile Send private message
vighnesh_r

New User


Joined: 23 Aug 2006
Posts: 14

PostPosted: Thu Mar 27, 2008 11:38 am
Reply with quote

Let me clarify the position a bit.
I have to decide between taking a dump of a few tables onto a VSAM or accessing those tables multiple times for my processing.

In this case, i feel that given the large no. of transactions i will be better off taking a dump and then using the VSAM rather than querying the DB multiple times.

The basic question is this, for a single search which is faster a key sequenced VSAM or a DB search. any inputs will be valuable icon_smile.gif

TIA
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Mar 27, 2008 1:12 pm
Reply with quote

too much depends on the type of box you have, what releases of cobol and db2 you have, what op-sys are you running?.


also, sounds as if a match merge is a possible solution.

plus, what kind of updating is required?
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 Mar 27, 2008 7:46 pm
Reply with quote

Hello,

Quote:
Let me clarify the position a bit.
More clarification would be good. . .

Quote:
decide between taking a dump of a few tables onto a VSAM or accessing those tables multiple times for my processing
In this case, i feel that given the large no. of transactions i will be better off taking a dump and then using the VSAM rather than querying the DB multiple times
Why do you suspect that multiple vsam accesses will perform better than database accesses?

Quote:
which is faster a key sequenced VSAM or a DB search
Is the db2 access also via key? If not, maybe it should be.

If you more clearly explain your requirement (show some data examples) we can probably offer more usable suggestions. As was suggested, you may only need a simple match/merge.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to access web services/website? Mainframe Interview Questions 4
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
Search our Forums:

Back to Top