Passing Parameters in the JCL Job

  Accepting Parameters from STDIN
  Passing LINKAGE SECTION Parameters Using MAINARGS
  Example with STDIN and MAINARGS

You can pass parameters to Jopaz-compiled COBOL applications in two ways: using the STDIN DD card or the MAINARGS DD card.
If you chose the first method, you define the parameters using the STDIN DD card, which the COBOL application reads as ACCEPT values.
If you choose to use the MAINARGS DD card method, you pass the parameters to the LINKAGE SECTION of the Jopaz-compiled COBOL program.
When you are using JCL symbolic parameters, you must follow these rules:
At the beginning of the job, all symbolic parameters need to be exported. The command for this is EXPORT SYMLIST=(*).
Specify the assigned value in single quotation marks. For example: SET PARM1=’parameter 1’.
In the definition of the STDIN DD or MAINARGS DD card, you must enable the use of JCL symbolic parameters in the input of the DD card with *, SYMBOLS=JCLONLY.
When using the MAINARGS DD method, you must specify the JCL symbolic parameter in single quotation marks: ’&PARM1.’.
If you are using the MAINARGS DD method and you want to pass several JCL symbolic parameters, you must enclose them all in single quotation marks: ’&PARM1.&PARM2.’.