JCLVVAR – Variable details
Use the JCLVVAR
statement to define
a variable.
Keyword | Description |
---|---|
VARNAME |
Specifies the name of the variable. |
COMP |
Specifies the way in which the LENGTH field is
used to validate the length of the replaced value. This field is optional, unless you specify
a length value. For example, EQ 12 means that the replaced value must be exactly 12 characters long.
|
DEFAULT |
Specifies the value the variable must have if another values is not explicitly assigned, up to 44 characters. |
DEPENDENCY |
Specifies the name of a variable on which the value of this variable is
dependent. This requires JCLVDEP statements to be defined. |
DESCR |
Specifies a description of, for example, the purpose and use of the variable, up to 20 characters. |
DIALOG1 |
Specifies line 1 (of 4) of information for the preparer. Each line can be up to 51 characters long. |
DIALOG2 |
Specifies line 2 (of 4) of information for the preparer. Each line can be up to 51 characters long. |
DIALOG3 |
Specifies line 3 (of 4) of information for the preparer. Each line can be up to 51 characters long. |
DIALOG4 |
Specifies line 4 (of 4) of information for the preparer. Each line can be up to 51 characters long. |
EXIT |
Specifies a substitution exit to be used to resolve the variable. |
LENGTH |
Use this field together with COMP to validate
the length of the value substituted by the job preparer. This is optional, unless you specify
a length comparison.For example, |
NUMERIC |
Specifies if the data must be numeric:
Specify this filed only if |
PICT |
Specifies the character pattern used together with the verification
TYPE
PICT . Optional, unless TYPE is
PICT . For example, Use the characters |
POS |
Specifies the starting position, in a range from 1 to 80, for a value assigned to an in-stream positional variable, or 0 if the variable is not positional. The default is 0. |
REQD |
Specifies whether the variable can be assigned a blank value or not:
|
SETUP |
Specifies how variable substitution is managed:
|
SUBPOS |
Position in string to start substring selection for dependent variables. |
SUBLEN |
Length of substring selection for dependent variables. |
TYPE |
Specifies the type of verification to be carried out on the data
specified by the preparer. This follows the same format rules as the ISPF
VER statement. Optional. Valid types are:
|
UCASE |
Specify Y to get characters a-z translated to
upper case. Specify N to keep mixed case (the default is
N ). |
VALID1 |
Line 1 of LIST/RANGE values for use in
validating the variable (up to 51 characters).For type For type
For
example, Specify this keyword only if the |
VALID2 |
Line 2 of LIST/RANGE values for use in
validating the variable (up to 51 characters).For type For example,
Specify this keyword only if the |