OVERRIDING A DD CARD IN JCL FOR A MULTIPLE PROC JOB

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
mainuser
Member
Posts: 2
Joined: Tue Jul 31, 2007 3:56 pm

OVERRIDING A DD CARD IN JCL FOR A MULTIPLE PROC JOB

Post by mainuser » Mon Aug 20, 2007 2:43 pm

I have a JCL, which calls PROC1, this PROC1 inturn calls PROC2.

My requirement is to override SYSUT1 in PROC2 from existing YPRT.WIRE20.JCL(INPUT) to YPRT.WIRE20.JCL(NEWIN) in JCL itself. Can some one help me out. PROC1 and PROC2 should not be touched.

JCL

Code: Select all

//JCLCARD1 JOB (00400),'SAB8932',CLASS=B,MSGCLASS=Z,                
//         REGION=5M,NOTIFY=&SYSUID                                 
//PROC JCLLIB ORDER=(YPRT.WIRE20.JCL,YPRT.WIRE20.PROC)    
//STPCARD1 EXEC GCALLPRC                                            
//*    


PROC1

Code: Select all

//GCALLPRC PROC             
//START000 EXEC GCALLPR2
PROC2

Code: Select all

//GCALLPR2 PROC                                      
//IEBGEN1  EXEC PGM=IEBGENER                         
//SYSPRINT DD SYSOUT=*                               
//SYSUT1 DD DSN=YPRT.WIRE20.JCL(INPUT),DISP=SHR 
//SYSUT2 DD DSN=YPRT.WIRE.PRC.TSTL,             
//            DISP=(,CATLG,DELETE),                  
//            UNIT=TESTDA,                           
//            SPACE=(TRK,(100,50),RLSE),             
//            DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)      
//SYSOUT DD SYSOUT=*                                 
//SYSIN   DD DUMMY                                   
//* 



------------
REGARDS
KRISHNA

Veera
Moderator
Posts: 111
Joined: Wed Feb 22, 2006 2:59 pm

Post by Veera » Mon Aug 20, 2007 7:45 pm

The following rules apply to modifying statements in nested procedures.

Procedure and step names referenced by other statements in the job should be unique within the job.

Modifying or additional JCL statements must appear in the job stream following the EXEC statement for the procedure they are to modify and prior to the next EXEC statement.

Modifying or additional JCL statements apply to one level of nesting only. You can use statements to modify statements in a procedure only for the level of nesting at which the EXEC statement for that procedure appears.

Modifying or additional JCL statements cannot themselves be modified. Do not modify statements that are overrides or additions to a procedure.

Modifying or additional JCL statements can only have procstepname.name or procstepname.ddname in their name field. Do not specify backward references to nested procedures, such as procstepname.procstepname.ddname DD parameters.

What we are intrested in is POINT 3 rule...Overrding can be done only till one level of nesting , So without touching both the PROC'S i guess it may not be possible.

I will be glad to know if there is some way of doing it.


Thanks,
Veera.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others