HPE NonStop SQL/MX Error – 3142 INTO clause host variables not allowed in a static cursor.

In this blog post, let’s learn about the error message “3142 INTO clause host variables not allowed in a static cursor.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

3142 INTO clause host variables not allowed in a static cursor.

Reason for the Error

You attempted to create a static cursor with INTO clause host variables, which is not supported.

Solution

Correct the syntax and resubmit