Page 1 of 1

Override parm in EXEC statement called by Include statement

PostPosted: Wed Aug 20, 2014 7:10 pm
by jscagli
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.

Re: Override parm in EXEC statement called by Include statem

PostPosted: Sun Aug 24, 2014 5:58 pm
by NicC
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

Re: Override parm in EXEC statement called by Include statem

PostPosted: Tue Aug 26, 2014 10:14 pm
by jscagli
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..