View previous topic :: View next topic
|
Author |
Message |
bh
New User
Joined: 19 Mar 2006 Posts: 26 Location: India
|
|
|
|
Hi,
How can one differentiate between a flat file and a VSAM file being used in a COBOL program ?
Regards,
gp |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Isn't a different SELECT specification required? |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
VSAM will have 2 components- data and index. This will be 2 separate files associated with the main file.
Flat file has no such components. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
VSAM will have 2 components- data and index. |
Where is the index component of an ESDS / RRDS ?
Also an ESDS can have an associated AIX and PATH ! |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
KSDS will have data and index component..
Also AIX and PATH are for Alternate Cluster. It can be there for KSDS. |
|
Back to top |
|
|
donevin
New User
Joined: 07 Jun 2005 Posts: 70 Location: South Africa
|
|
|
|
As William said a different slect statement is required. For flat files access mode and organization must be sequential. For relative record files, organization is relative, access mode can be sequential, random or dynamic and the same goes for key-sequential files where access mode is concerned. For key-sequential files organization is indexed and a record key must be declared. For RR files a relative key must be declared. This is off of the top of my head but should make the differences in the select statement clearer. |
|
Back to top |
|
|
|