The windows for specifying user variables and variable
values for JCL procedures allow you to add, edit, and remove user
variables and values. This section describes how to add user variables
and values.
Before you begin
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.
About this task
The following process shows how to add user variables and
variable values for a COBOL program.
Procedure
- To add a new user variable and parameter value for a JCL
procedure used with a COBOL program, open the COBOL Settings page
of the Properties window. In the right pane of the window, select
the JCL Substitution tab.
- Click Add. The Add a 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 and properties list. Repeat
these steps 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 you created the following variable names and values:
| Variable Name |
Variable Value |
| PARM |
LIST |
| ERRFDBK |
HLQ.IDECOBOL.XML |
The SET statement generated would look like this:
//SETSTMT SET PARM=LIST,
// ERRFDBK=HLQ.IDECOBOL.XML