Page 1 of 1

Add new line to jcl with override

PostPosted: Thu Jun 12, 2014 6:49 pm
by Simp
Hi

I have a job that runs a proc which is held in a proclib.

The proc is shared by several jobs and has symbolic parameters passed to it by each job.

I need to add an IAMOVRID line but only for one job.

Can I do it by means of a permanent override. I.e Can I add new line of JCL to a step by means of an override.

Re: Add new line to jcl with override

PostPosted: Thu Jun 12, 2014 8:05 pm
by Terry Heinze
The following will insert a //STEPLIB statement in step S10 of PROC PROC0001:
=COLS> ----+----1----+----2----+----3----+----4----+----5----+----
000001 //USERIDNN JOB (ACCNT,9221),'TERRY HEINZE -- NNNN',
000002 //             CLASS=B,
000003 //             MSGCLASS=H,
000004 //             NOTIFY=&SYSUID
000005 //         JCLLIB  ORDER=(USERID.PCAL.JCL)
000006 //*
000007 //JOBSTEP1 EXEC PROC0001
000008 //S10.STEPLIB  DD  DSN=CMN.APPL.STAGEP.#000999.LOD,DISP=SHR
and the other jobs sharing that PROC will not be affected. Is this what you mean?

Re: Add new line to jcl with override

PostPosted: Thu Jun 12, 2014 9:27 pm
by Simp
Thank you Terry

That's exactly what I needed, many thanks for taking the time to post.