Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Scope of SET symbols HLASM Language Reference SC26-4940-06 |
|
The scope of a SET symbol is that part of a program for which the SET symbol has been declared. Local SET symbols need not be declared by explicit declarations. The assembler considers any undeclared variable symbol found in the name field of a SETx instruction as a local SET symbol. If you declare a SET symbol to have a local scope, you can use
it only in the statements that are part of either:
If you declare a SET symbol to have a global scope, you can use
it in the statements that are part of any one of:
You must, however, declare the SET symbol as global for each part of the program (a macro definition or open code) in which you use it. You can change the value assigned to a SET symbol without affecting the scope of this symbol. |
Copyright IBM Corporation 1990, 2014
|