#WHILE

The #WHILE compiler command causes the compiler to evaluate the condition that follows the statement. This command is used in conjunction with the #END command. The code block between #WHILE and #END will be repeated as long as the #WHILE condition remains true, up to a maximum of 1000 iterations. After that, PSL generates the following error:

Maximum #WHILE count (1000) exceeded

Syntax

#WHILE condition

Parameters

condition

PSL code that is evaluated to determine if true or false. The condition can evaluate a table.column value, expression, etc.

When Became Available

Profile v6.3

Example

#WHILE rs.next()

set ABC(rs.getCol(1)) = rs.getCol(2)

#END