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

Advantages of db2 over vsam


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
p.d.prasad

New User


Joined: 20 Jun 2006
Posts: 14
Location: hyderabad

PostPosted: Thu Jul 13, 2006 12:41 am
Reply with quote

HI
Could anyone clarify :VSAM is a database and DB2is also a data base so why we should go for DB2 ,then why to learn VSAM in mainframes if DB2 can alone suffice the need??
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Fri Jul 14, 2006 10:43 am
Reply with quote

Prasad,
Though the data in Db2 is stored as Vsam datasets data retrivel could be done with relational SQL statements which is very powerfull and conveneinet in retrieveing from and puttitng data in to Db2 tables;the one which lacks in case with stand alone VSAM datasets(KSDS,ESDS,RRDS etc)..

Also complex relation operations of joining sorting grouping etc can be done using the SQL which is not possible thru ordinary VSAM files .Also you could think of a code fragment which is required to retrieve data from a VSAM file and from Table.The latter looks requires less coding and is more readable and flexible.

-Han.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Fri Jul 14, 2006 4:35 pm
Reply with quote

Hi,

VSAM is not a database but DB2 is a database management system . More specifically RDBMS.

The major advantage of using DB2 over VSAM is "Physical data Independence". i.e. when you use DB2 , you don't need to write relatively lower level of code involving physical charastericstics of file, read, write.... operations. This can be done via higher level language called SQL when you use DB2.

Also, data sharing and higher level of concurancy, integrity and transaction control can be achived if you use DB2.

The advantages of using DB2 over using VSAM is a huge list. Please google for the more advantages.. icon_smile.gif
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts VSAM LISTCAT INFORMATION JCL & VSAM 2
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
Search our Forums:


Back to Top