The "Subset of SQL Statements" element in the syntax diagram for the IF Statement List refers to all SQL statements, except for the following SQL statements, which are not valid in the IF statement list.
ALLOCATE DESCRIPTOR
|
LOAD
|
Many of these statements are prohibited by the more general rule that the dynamic management statements of SQL are not valid within an SPL routine.
You can use a SELECT statement only if you use the INTO TEMP clause to store the result set of the SELECT statement in a temporary table.