6. QUEL and EQUEL Statements : Endretrieve Statement--Terminate a Retrieve Loop : Description
 
Share this page                  
Description
The endretrieve statement terminates EQUEL retrieve loops. A retrieve loop is a retrieve statement followed by a block of code delimited by curly braces ({ }). The endretrieve statement is used within the code block to terminate the retrieve loop and transfer control to the first statement following the loop.
If the endretrieve statement is issued inside a forms display loop that is nested within a retrieve loop, the endretrieve statement terminates the display loop as well as the retrieve loop.