View previous topic :: View next topic
|
Author |
Message |
santhunaveen
New User
Joined: 22 Sep 2006 Posts: 33
|
|
|
|
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 |
|
|
Aryang4u
New User
Joined: 21 Feb 2006 Posts: 8 Location: Los Angels, CA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Aryang4u
New User
Joined: 21 Feb 2006 Posts: 8 Location: Los Angels, CA
|
|
|
|
Thanks a lot Dick for better clarification. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
|