View previous topic :: View next topic |
Author |
Message |
suresh05 Beginner
Joined: 14 Sep 2005 Posts: 18 Topics: 8
|
Posted: Wed Dec 21, 2005 9:29 am Post subject: How to identify a VSAM file from cobol program |
|
|
Hi,
I have just a basic question.How can we identify if a file used is VSAM or not from a COBOL program. I know we can identify KSDS & RRDS from the ORGANIZATION clause in the Select statement. I am not sure about ESDS becasue the ORGANIZATION clause in the Select statement will be Sequential for VSAM & flat files. |
|
Back to top |
|
 |
haree_amrid Beginner
Joined: 21 Dec 2005 Posts: 9 Topics: 3 Location: INDIA
|
Posted: Wed Dec 21, 2005 9:39 am Post subject: |
|
|
Hi Suresh,
In the COBOL program if we are using ESDS, the SELECT statement will be like this:-
Code: |
SELECT filename ASSIGN TO AS-ddname
|
means we have to give a prefix AS- before the DDNAME. _________________ With Regards,
Hareesh Amrideswaran |
|
Back to top |
|
 |
suresh05 Beginner
Joined: 14 Sep 2005 Posts: 18 Topics: 8
|
Posted: Wed Dec 21, 2005 9:42 am Post subject: |
|
|
I am not sure prefix AS- is mandatory for VSAM files. I think it will work without the AS- prefix |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
|
Back to top |
|
 |
|
|