View previous topic :: View next topic
|
Author |
Message |
Mathiv Anan
Active User
Joined: 23 Jul 2008 Posts: 106 Location: USA
|
|
|
|
Hi,
could you please let me know if it is necessary to have a DD name for an alternate index of a VSAM in a JCL? (that VSAM has a dd name in that job)
Will that job work without a DD for alternate index file, if we have a DD for base VSAM file alone? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
do you have a SELECT statement in your COBOL module for the aix?
do you need a DD statement in your JCL
for any COBOL SELECT statement that declares a file
for which I/O services are requested by the module? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Do you use the ALTERNATE RECORD KEY clause? If so, you must have a DD name for the alternate index path. The DD name for the alternate index will the be the VSAM base cluster DD name with a 1 appended (unless the DD name is 8 characters in which case the 1 replaces the 8th character).
I don't remember ever using a VSAM file in COBOL that had an alternate index defined on it without using the ALTERNATE RECORD KEY clause. I'm not sure this would even be allowed if the alternate index is in the UPGRADE set. Have you tried it? What results did you get? |
|
Back to top |
|
|
Mathiv Anan
Active User
Joined: 23 Jul 2008 Posts: 106 Location: USA
|
|
|
|
Thanks for all your help.
A DD for AIX is required only when ALTERNATE KEY is mentioned in I/O section of COBOL. Also, this applies regardless of UPGRADE value for AIX.
I tested it. |
|
Back to top |
|
|
|