In this blog post, let’s learn about the error message “4306 A CALL statement is not allowed within a compound statement.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
4306 A CALL statement is not allowed within a compound statement.
Reason for the Error
In the SQL/MX statement being compiled, a CALL statement was present within a BEGIN…END block.
Solution
Remove the CALL statement from the compound statement and retry the compilation