Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
![]() The UNTIL and WHILE keywords HLASM Toolkit Feature User's Guide GC26-8710-10 |
|
The test generated by the UNTIL keyword, as with those generated by the indexing group, is used at the loop termination. The test generated by the WHILE keyword, on the other hand, tests whether to enter a loop at all prior to its execution. For both keywords, the parameterization is identical to that of the IF macro. The UNTIL and WHILE operands accept compound predicates in the same format as used on the IF statement, with the exception that the CC= keyword operand is not allowed. The DO WHILE example:
produces:
The DO UNTIL is coded in the same manner:
and produces:
It is possible to create a compound DO with both UNTIL and WHILE
parameters on the same macro.
For example:
produces:
The operand formats for the WHILE and UNTIL keywords are the same as
those of the IF-type macros and can be used with Boolean
operators as in the following example:
produces (with ASMMREL ON in effect):
![]() ![]() ![]() |
![]() |