Previous Topic: PL/I Variable SyntaxNext Topic: Resume and Execution Options


Examples

The following are examples of valid PL/I variables:

TOTALAMT
CUSTREC.CUSTNO.PREFIX
MONTHLYBAL (8)
 YEARLYTOT (WYR, 3, WDEPT)
 SUBRTN1:ITEMA
SUBRTN1:INPREC.ITEMB (3, SUB2, 4, SUB3)

Example

PRT1 is a POINTER variable that provides the base address for BASED variable BASEDSTRUCT1.

PRT1 ‑> BASEDSTRUCT1

Example

PRT1 is a POINTER variable that provides the base address for BASED variable BASEDSTRUCT1. It contains another POINTER variable, PRT2, which is used as the base address for the BASED variable BASEDSTRUCT2, containing ITEMA.

PRT1 ‑> BASEDSTRUCT1.PRT2 ‑> BASEDSTRUCT2.ITEMA

Example

STRUCTA is not a pointer variable but a structure. The address of STRUCTA is used to map the variable names defined in STRUCTB.

STRUCTA ‑> STRUCTB