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


Subscripted global SET symbols

HLASM Language Reference
SC26-4940-06

A global subscripted SET symbol is declared by the GBLA, GBLB, or GBLC instruction.
Read syntax diagramSkip visual syntax diagram
>>-+-----------------+--+-GBLA-+-------------------------------->
   '-sequence_symbol-'  +-GBLB-+   
                        '-GBLC-'   

   .-,--------------------------.   
   V                            |   
>----variable_symbol(dimension)-+------------------------------><

sequence_symbol
Is a sequence symbol.
variable_symbol
Is a variable symbol, with or without the leading ampersand (&).
dimension
Is the dimension of the array. It must be an unsigned, decimal, self-defining term greater than zero.
Example:
         GBLA            &GA(25),&GA1(15)
There is no limit on the maximum subscript allowed, except that each subscripted variable is allocated storage, so the maximum subscript can be limited by the amount of storage available. Also, the limit specified in the global declaration (GBLx) can be exceeded. 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.
Notes:
  1. Global arrays are assigned initial values only by the first global declaration processed, in which a global subscripted SET symbol appears.
  2. A subscripted global SET symbol can be used only if the declaration has a subscript, which represents a dimension; an unsubscripted global SET symbol can be used only if the declaration had no subscript, except for a number attribute reference to the name of a dimensioned SET symbol.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014