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

wht are the advantages of VSAM files compared to flat files


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
santhunaveen

New User


Joined: 22 Sep 2006
Posts: 33

PostPosted: Tue Mar 13, 2007 3:54 pm
Reply with quote

Hi,

Can any one tell me how can we identify..is this a VSAM file or a flat file.....

And wht are the advantages of VSAM files compared to flat files.....?
Back to top
View user's profile Send private message
Aryang4u

New User


Joined: 21 Feb 2006
Posts: 8
Location: Los Angels, CA

PostPosted: Tue Mar 13, 2007 5:26 pm
Reply with quote

We wont be able to open a VSAM file in ISPF option 3.4.
So when we try the same you will get a error message like

"VSAM processing unavail. ".
We can view the same using Fileaid

Hope this helps you to easily differentiate both.

------------------------------------------------------------------------

Advantages:-

1. Data Retrieval is fast in VSAM.
2. Record management is easy compared with Sequential dataset.
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 Mar 13, 2007 8:09 pm
Reply with quote

Hello,

Vsam files are defined as a cluster and flat files are not. For one vsam file, there are multiple physical files (the "master" file, the data file, and a file for index entries).

The biggest advantages with vsam are the ability to read records randomly based on a key (there may be multiple keys) and the ability to access the vsam file in batch and online concurrently.
Back to top
View user's profile Send private message
Aryang4u

New User


Joined: 21 Feb 2006
Posts: 8
Location: Los Angels, CA

PostPosted: Tue Mar 13, 2007 11:23 pm
Reply with quote

Thanks a lot Dick for better clarification.
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 Mar 13, 2007 11:30 pm
Reply with quote

You're welcome icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Mar 17, 2007 11:50 pm
Reply with quote

Hi,

Let say you have a VSAM file HLQ.VSAM.FILE, If you use ISPF then if you try to open this file with 3.4 option then, you will get 3 files as:

HLQ.VSAM.FILE **VSAM**
HLQ.VSAM.FILE.DATA VOLUME NO.
HLQ.VSAM.FILE.INDEX VOLUME NO.

Here if you put 'B', to browse, in front of VSAM file 'DITTO' funtion will invoke. If will open using F1 option user will be asked about proper layout.

For a flat file, browse will simply browse the file.

These are the differences, can help you to differentiate between VSAM & Flat file from ISPF point of view.

Further VSAM is of 3 types: ESDS, KSDS,RRDS.


As stated by Dick, uses of keys make random access of data in VSAMs, which is not possible in Flat File.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
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 Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top