Contents - Index


 

Use ProcLoop to continue processing at the line immediately following the prior related ProcBlock position (related by the nesting count). ProcLoop is often used after an ProcIf command.  Its execution then is dependent upon the results of the ProcIf command.

 

ProcLoop may also be entered as Loop.

 

ProcLoop has no operands.

 

Return Codes

 

OK Successful.

 

Examples

 

The following example shows the ProcLoop command, in conjunction with the ProcBlock, ProcEndBlock, and ProcLeave commands, used within a procedure to process a set of statements 10 times:

 

 ------------------------------------------------------------------------

 ...

 SET CT,0

 BLOCK

   ADD CT,1

   IF CT,GT,10

       LEAVE

    .... Statements

   LOOP

 ENDBLOCK

 ...

 ------------------------------------------------------------------------