Behaviour of "PERFORM Paragraph THRU paragraph-exit UNTIL end"

51 Views Asked by At

i would like to know the behaviour of this statements bellow:

SET NOK TO TRUE
PERFORM PARAGRAPHE-1 THRU PARAGRAPHE-2 UNTIL NOK

Is paragraphs from PARAGRAPHE-1 until PARAGRAPHE-2 are executed or no ?

1

There are 1 best solutions below

0
Rui Vieira On

It will not be executed, because exit evaluation happens before executing the perform statements, by default.

If you want to test the condition after the execution, you need to do it explicitly, like this.

PERFORM PARAGRAPHE-1 THRU PARAGRAPHE-2 WITH TEST AFTER UNTIL NOK