z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Passing labels

z/OS ISPF Edit and Edit Macros
SC19-3621-00

You can create a label at any level above its current level by explicitly stating the level:
Read syntax diagramSkip visual syntax diagram
>>-ISREDIT LABEL--lptr--=--label--+-------+--------------------><
                                  '-level-'   

Here, if the label previously existed at the explicitly specified level, its old definition is lost. A label assigned at a higher level remains after the macro ends and is available until the level at which it was assigned ends or the label is explicitly removed.

If a macro sets a label without indicating a level, or if its value is equal to or greater than the level at which the macro is running, the label is set at the macro level that is currently in control and does not affect any labels set in a higher level.

If a macro queries a label without specifying a level, or uses the label as a line pointer, the search for the label starts at the current macro level and goes up, level by level, until the label defined closest to the current level is found.

If you specify a level parameter that is outside the currently active levels, it is adjusted as follows: a value less than zero is set to zero; a value greater than the current nesting level is set to the current nesting level. This means that a higher-level macro cannot set a label at the level of the macro that it is going to start.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014