Use the LCLA, LCLB, and LCLC instructions to declare the local SETA, SETB, and SETC symbols you need. The SETA, SETB, and SETC symbols are assigned the initial values of 0, 0, and null character string, respectively.
|
These instructions can be used anywhere in the body of a macro definition or in the open code portion of a source module.
Any variable symbols declared in the operand field have a local scope. They can be used as SET symbols anywhere after the pertinent LCLA, LCLB, or LCLC instructions, but only within the declared local scope. Multiple LCLx statements can declare the same variable symbol so long as only one declaration for a given symbol is encountered during the expansion of a macro.
The following rules apply to a local SET variable symbol:
A local subscripted SET symbol is declared by the LCLA, LCLB, or LCLC instruction.
Example:
LCLB &B(10)
There is no limit to SET symbol dimensioning other than storage availability. The limit specified in the explicit (LCLx) or implicit (SETx) declaration can also be exceeded by later SETx statements. The dimension shows the number of SET variables associated with the subscripted SET symbol. The assembler assigns an initial value to every variable in the array thus declared.
A subscripted local SET symbol can be used only if the declaration has a subscript, which represents a dimension; an unsubscripted local SET symbol can be used only if the declaration had no subscript, except for a number attribute reference to the dimensioned SET symbol.
The assembler permits an alternative statement format for LCLx instructions:
Cont.
LCLA &LOCAL_SYMBOL_FOR_DC_GEN, X
&COUNTER_FOR_INNER_LOOP, X
&COUNTER_FOR_OUTER_LOOP, X
&COUNTER_FOR_TRAILING_LOOP
[ Top of Page | Previous Page | Next Page | Contents | Index ]