HPE NonStop SQL/MX Error – 4210 Embedded update/delete statements not supported within an IF statement.

In this blog post, let’s learn about the error message “4210 Embedded update/delete statements not supported within an IF statement.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

4210 Embedded update/delete statements not supported within an IF statement.

Reason for the Error

You attempted to embed UPDATE/DELETE statements within an IF statement.

Solution

Modify the statement and resubmit