-7080: Query in statement not allowed


The search condition of an IF or WHILE statement contains a QUERY statement. This is not allowed.

User Action:

Execute the QUERY statement outside of the IF or WHILE statement, and save the results in program variables. Then use these results in the IF or WHILE statement.