Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Use of AIX DD name in batch job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Use of AIX DD name in batch job
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    Post subject:
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: 7932
Location: Bellevue, IA

PostPosted: Wed Oct 15, 2008 12:40 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us