IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Use of AIX DD name in batch job


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mathiv Anan

Active User


Joined: 23 Jul 2008
Posts: 106
Location: USA

PostPosted: Wed Oct 15, 2008 12:20 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Oct 15, 2008 12:39 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 15, 2008 12:40 am
Reply with quote

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
View user's profile Send private message
Mathiv Anan

Active User


Joined: 23 Jul 2008
Posts: 106
Location: USA

PostPosted: Wed Oct 15, 2008 10:34 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Batch install term/printer CICS 2
No new posts File Aid Batch IBM Tools 7
Search our Forums:

Back to Top