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
 

 

wht are the advantages of VSAM files compared to flat files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: wht are the advantages of VSAM files compared to flat files
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    Post subject:
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

Site Director


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

PostPosted: Tue Mar 13, 2007 8:09 pm    Post subject:
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    Post subject: Re: wht are the advantages of VSAM files compared to flat fi
Reply with quote

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

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

Senior Member


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

PostPosted: Sat Mar 17, 2007 11:50 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm


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