Contents - Index


 

Use ProcEndBlock to end the current logical block of commands and continue processing at the following command.

 

ProcEndBlock may also be entered as EndBlock.

 

The start of the logical block is defined by the ProcBlock command. ProcEndBlock has no operands.

 

Return Codes

 

OK Successful.

 

Examples

 

The following example shows the ProcEndBlock command, in conjunction with the ProcBlock, ProcLoop, 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

 ...

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