DSNH4775I E csect-name LINE line-number COL column number STATEMENT SPECIFIED IN SQL ROUTINE IS NOT ALLOWED WITHIN A COMPOUND STATEMENT

Explanation

A statement specified in the routine body is not allowed in a compound statement.

csect-name
The name of the control section that issued the message.
line-number and column number
The location of the error in the source program.

An ATOMIC compound statement cannot be specified:

  • In an SQL scalar function.
  • In an SQL procedure.
  • Within another compound statement that is defined as ATOMIC.

System action

The statement cannot be processed.

User response

Remove the statement from the SQL routine.

Severity

8 (error)