At 4:11 PM -0400 on 05/25/2010, Scott Bennett wrote about What
control block would be best to get the current value o:

For example, given the following JCL should could I get the value of JCL
symbolic variable OPTION.  I am unable to pass this value in via PARM
because I will be a sub task the step's program, who expects specific
values in PARM.

Do you have access to the main programs source? If so, you can edit
it to parse the parm and remove/ignore the added parm (which could be
prefixed by a slash). I seem to remember that the 2 part parm (with
the parts separated with a slash) is a method that is used by (I
think) the Cobol Compiler to pass info like this.

A second method is to add a DD of PASSPARM like this:

//PASSPARM DD DSN=SYS1.MACLIB(&OPTION),DISP=SHR (or any valid PDS Library)

Using a RDJFCB call will allow you to get the member name (So long as
it begins with an alpha, is 8 chars or less, and is a valid member
string).

Reply via email to