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
Procedure
- 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.
- In the left pane of the window, select JCL Substitution.
- Click Add User Variable.
The Add User Variable window opens.
- Type the variable name in the Variable name field.
- Type the value of the variable in the Variable value field.
- Click OK. The variable name and value are added to the table.
- 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
Variable Name | Variable Value |
---|---|
PARM | LIST |
ERRFDBK | HLQ.IDECOBOL.XML |
//SETSTMT SET PARM=LIST,
// ERRFDBK=HLQ.IDECOBOL.XML