Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6970
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: 8189
Location: East Dubuque, Illinois, USA

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 to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 0 Wed Nov 22, 2017 10:23 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 6 Fri Sep 15, 2017 9:20 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us