JCL PROC Override



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL PROC Override

Postby raghav08 » Wed Oct 27, 2010 5:23 pm

Hi,

If my JCl has the following statements

//BKC5U06C EXEC PROC=IMDLIBCH
//IEFRDER  DD DSNAME=PRD22.BKC5.IMSLT.BKC5UC06(+1),
//           DISP=(NEW,CATLG,CATLG),
//            UNIT=CTPE,LABEL=EXPDT=99000


And my PROC

//IMDLIBCH PROC
//STEP01 EXEC PGM=DFSRRC00
:
//IEFRDER  DD DSN=PRD02.BSKC.OUT,DISP=(,KEEP)
:


How the above PROC override will work without STEPNAME.DDNAME concept?

Thanks.
raghav08
 
Posts: 18
Joined: Wed Oct 27, 2010 5:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL PROC Override

 

Re: JCL PROC Override

Postby NicC » Wed Oct 27, 2010 6:41 pm

As per the JCL manual - the override will be applied to the first step, or if there is another override for a particular step preceding your override then it will be applied to that step e.g.
//STEP2.SOMENAME DD ....
//YOURNAME DD ....

The YOURAME override will be applied to STEP2.

Of course, you could have found this out by yourself in less time than it take to post the question just by trying it out. Use TYPRUN=SCAN to prevent the job actually executing - all the JCL substitution is done before the job executes.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2749
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 110 times

Re: JCL PROC Override

Postby raghav08 » Thu Oct 28, 2010 12:41 pm

Thanks for your reply.

The same procedure called again with following override (no DSN name)- Whats the use of this override statement(no DSN)?

//BKC5U06C EXEC PROC=IMDLIBCH
//STEP01.IEFRDER DD SPACE=(8192,(90000,99999)),UNIT=CTPE,
//                LABEL=EXPDT=99000,DISP=(NEW,CATLG,DELETE)


Thanks.
raghav08
 
Posts: 18
Joined: Wed Oct 27, 2010 5:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL PROC Override

Postby NicC » Thu Oct 28, 2010 12:44 pm

Do you know what override means? Suggest you do as I suggested: 1) read the JCL Users Guide, 2) run the job using TYPRUN=SCAN
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2749
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 110 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post