Adding user variables and variable values for JCL substitution

The windows for specifying user variables and variable values for JCL procedures allow for adding, editing, and removing user variables and values.

About this task

The same process can be used to add user variables and values for JCL procedures on any of the JCL Substitution pages in the property group editor. The following process shows how to add user variables and variable values for a COBOL program.

Procedure

  1. To add a user variable and parameter value for a JCL procedure that is used with a COBOL program, open the COBOL Settings page of the property group editor.
  2. In the left pane of the window, select JCL Substitution.
  3. Click Add User Variable.
    The Add User Variable window opens.
  4. Type the variable name in the Variable name field.
  5. Type the value of the variable in the Variable value field.
  6. Click OK.
    The variable name and value are added to the table.
  7. Repeat steps 1-6 as necessary to add the rest of your variables and values.

Results

When you specify variable names and values on a JCL Substitution page and then generate JCL or trigger a remote build or syntax check, a SET statement is generated just before the EXEC PROC statement.

Example

Assume that you create the following variable names and values:
Variable Name Variable Value
PARM LIST
ERRFDBK HLQ.IDECOBOL.XML
The following SET statement is generated:
//SETSTMT SET PARM=LIST,
//  ERRFDBK=HLQ.IDECOBOL.XML