Override parm in EXEC statement called by Include statement



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

Override parm in EXEC statement called by Include statement

Postby jscagli » Wed Aug 20, 2014 7:10 pm

I know it is possible to override a parm in an EXEC statement that has been called in by a proc but I have been unable to override a parm in an EXEC statement that is called in by an INCLUDE. For example the following statement below is called in by an INCLUDE:

// INCLUDE CA11 this is the include that calls in the EXEC statement

//CA11INC EXEC PGM=U11RMS,PARM='P' this is the EXEC statement i wish to override

I want to override the PARM='P' to PARM='N' I'm thinking this cannot be done when the jcl is called in by an INCLUDE.
jscagli
 
Posts: 8
Joined: Thu Jan 13, 2011 9:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Override parm in EXEC statement called by Include statem

Postby NicC » Sun Aug 24, 2014 5:58 pm

Well, not showing how the JCL hangs together I can only guess - do you have an EXEC proc somewhere? If so try
//  EXEC procname,PARM.CA11INC=N
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Override parm in EXEC statement called by Include statem

Postby jscagli » Tue Aug 26, 2014 10:14 pm

As i said in my post there is no execution of a proc. If there was the override would be easy to perform. The program exec statement is directly called in by the include - no proc is used..
jscagli
 
Posts: 8
Joined: Thu Jan 13, 2011 9:44 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post