HLASM Toolkit Feature User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Infinite loop

HLASM Toolkit Feature User's Guide
GC26-8710-10

If you wish to execute a loop until some external terminating event takes place (for example, an end of file), then you may do so by specifying the INF positional parameter.

Thus, coding:
        DO  INF
          Code for F
        ENDDO
produces:
        DO  INF
#@LB2     DC    0H
          Code for F
        ENDDO
          BC    15,#@LB2

In order to generate an infinite loop, no FROM, WHILE, or UNTIL keywords can be present. TO and BY keywords, if present, are ignored.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014