Add new line to jcl with override



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

Add new line to jcl with override

Postby Simp » Thu Jun 12, 2014 6:49 pm

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.
Simp
 
Posts: 2
Joined: Thu Jun 12, 2014 6:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Add new line to jcl with override

 

Re: Add new line to jcl with override

Postby Terry Heinze » Thu Jun 12, 2014 8:05 pm

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?
.... Terry
Terry Heinze
 
Posts: 193
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 10 times
Been thanked: 11 times

Re: Add new line to jcl with override

Postby Simp » Thu Jun 12, 2014 9:27 pm

Thank you Terry

That's exactly what I needed, many thanks for taking the time to post.
Simp
 
Posts: 2
Joined: Thu Jun 12, 2014 6:35 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post