HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


LCLA, LCLB, and LCLC instructions

HLASM Language Reference
SC26-4940-06

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.
Read syntax diagramSkip visual syntax diagram
                                  .-,---------------.   
                                  V                 |   
>>-+-----------------+--+-LCLA-+----variable_symbol-+----------><
   '-sequence_symbol-'  +-LCLB-+                        
                        '-LCLC-'                        

sequence_symbol
Is a sequence symbol.
variable_symbol
Is a variable symbol, with or without the leading ampersand (&).

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:
  • Within a macro definition, it must not be the same as any symbolic parameter declared in the prototype statement.
  • It must not be the same as any global variable symbol declared within the same local scope.
  • The same variable symbol must not be declared or used as two different types of SET symbols; for example, as a SETA and a SETB symbol, within the same local scope.
  • Do not begin a local SET symbol with &SYS, because these characters are used for system variable symbols.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014