Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
AGO instruction HLASM Language Reference SC26-4940-06 |
|
The AGO instruction branches unconditionally. You can thus alter
the sequence in which your assembler language statements are processed. This provides you with final exits
from conditional assembly loops.
>>-+-----------------+--AGO--sequence_symbol------------------->< '-sequence_symbol-'
The statement named by the sequence symbol in the operand field is the next statement processed by the assembler. The statement identified by a sequence symbol referred to in the
AGO instruction can appear before or after the AGO instruction. However,
the statement must appear within the local scope of the sequence symbol.
Thus, the statement identified by the sequence symbol must appear:
Example:
Statement 1 determines if the type attribute of the first macro instruction operand is the letter F. If the type attribute is the letter F, Statement 3 is the next statement processed by the assembler. If the type attribute is not the letter F, Statement 2 is the next statement processed by the assembler. Statement 2 indicates to the assembler that the next statement to be processed is Statement 4 (the statement named by sequence symbol .END). |
Copyright IBM Corporation 1990, 2014
|