VARn


This optional parameter specifies variable text that can be substituted into the selected skeleton JCL, which allows user-created variables that are associated with the SET statement to be passed to the skeleton JCL.

This parameter can be used to reduce the number of skeleton JCL members that are needed for a particular function. Rather than having one member for each unique specification, the &VAR parameters can be used to set the unique value in the variable, whatever it is, and have it included in the tailoring process.

The &VAR parameters can contain other skeleton variables, for example:

&VAR2='VERIFY(&CANDVOL)'

This parameter can be specified in RLST SET statement of any AUTO function.

Syntax

VAR<n>='<textString>'

Default

None. If VARn is not specified, any &VAR variables in the skeleton JCL will not be tailored.

Variables

The n variable represents a number between 1 and 9.

The textString variable represents from 1 to 80 characters.

A continuation character can be used as defined in the FLST/RLST conventions.

Single quotation marks must be used if spaces exist in textString .

Example

In this example, the AUTOADDV function selects the current device if it is a 3390-54 and it is being added to the LARGEGRP storage group. The skeleton JCL in SRMJOB10 is used to initialize the selected device.

The RLST SET statement sets the VAR1 variable to the VTOC size for this type of device:

SET ACT_JOB=SRMJOB10 VAR1='VTOC(0,1,14)'
INC DEV_TYPE=3390-54 GROUP=LARGEGRP

The SRMJOB10 skeleton JCL member contains the following syntax in the SYSIN of the INIT step:

//SYSIN DD *
INIT -
UNIT(&UNIT) -
VERIFY(&CANDVOL) -
VOLID(&TARGVOL) -
&VAR1

After skeleton tailoring, the resulting JCL would be

//SYSIN DD *
INIT -
UNIT(&UNIT) -
VERIFY(&CANDVOL) -
VOLID(&TARGVOL) -
VTOC(0,1,14)

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*