Previous Topic: &TIME

Next Topic: Which SYSIN01 Statements Support Symbolic Parameters?


How to Use Symbolic Parameters

You can place symbolic variables in any combination in SYSIN01 control statements to create composite parameter values. You can use a period (.) as a terminating character for the symbolic variable, but this is not required. If a period is present, it is removed from the resultant field content.

Example

ID=X-&TIME(HH):&TIME(MM):&TIME(SS)

This results in the value for ID being set to:

X-15:31:28

If the symbolic variable does not have a system value, you must assign a value before using the symbolic variable. You can also specify subscripts on symbolic variables that do not have a format-code. There are two formats for subscripted symbolic variables. If only one numeric value is present, a starting position of 1 is assumed. A second subscript format allows for a starting position as well as a length to be entered:

Example (one subscript)

LU=L784000
ID=LU#&LU(4)

This results in the value for ID being set to:

LU#L784

Example (two subscripts)

LU=LU250021
ID=LU#&LU(5,4)

This results in the value for ID being set to:

LU#0021