In this blog post, let’s learn about the error message “13033 Host variable name1 is in different scope than when cursor name2 was declared.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
13033 Host variable name1 is in different scope than when cursor name2 was declared.
Reason for the Error
You specified a host variable name name1, which is out of scope with cursor name.
Solution
Find where the variable is declared and put it in the correct scope