Previous Topic: COBOL Variable SyntaxNext Topic: Examples


PL/I Variable Syntax

The general syntax for a PL/I variable in CA InterTest for CICS indirect commands is as follows:

expression‑1 [‑> expression‑2 ...]
‑>

Defines the address for symbol. It indicates that the expression on the left provides the address on which the the expression on the right is based. If the expression on the left is a PL/I POINTER variable, the contents of the POINTER variable is use. The ‑> notation is provided for referencing PL/I BASED variables whose addresses cannot be resolved at compile time, but are used for referencing any PL/I variable.

expression is defined as follows:

[procnm:] var‑name‑1[,var‑name‑2 ...] [({sub‑name OR number}[, ...])]
procnm

Indicates the label of the procedure to which the variable belongs. If used, procnm must immediately be followed by a colon (:). If omitted, it defaults to the MAIN procedure name.

var‑name

Identifies the PL/I variable name.

sub‑name

Defines a PL/I variable name to use as a subscript. This identifier must follow all PL/I rules for valid subscripts.

number

Specifies a positive integer that is a valid subscript for var‑name.

Note: OR is not part of the command syntax.