I am coding dynamic SQL. I have a input file with 100 claims. On 4 of the claims my program gets a +100 on the FETCH, but when I hard code a SELECT right after my FETCH, I am getting a row back. I am guessing my pointer is getting hosed somehow. Dynamic SQL uses address's for its WHERE clause. I have 2 variables in my WHERE clause. I am setting the address in INA-SQLDA as follow, right before I OPEN the cursor.
SET INA-SQLDATA(1) TO ADDRESS OF VARIABLE-A
SET INA-SQLDATA(2) TO ADDRESS OF VARIABLE-B
MOVE IN-FIELD1 TO VARIABLE-A.
MOVE IN-FIELD2 TO VAIRABLE-B.
When I display INA-SQLDA, how do I verify fields INA-SQLDATA(1) and INA-SQLDATA(2)?
SET INA-SQLDATA(1) TO ADDRESS OF VARIABLE-A
SET INA-SQLDATA(2) TO ADDRESS OF VARIABLE-B
MOVE IN-FIELD1 TO VARIABLE-A.
MOVE IN-FIELD2 TO VAIRABLE-B.
When I display INA-SQLDA, how do I verify fields INA-SQLDATA(1) and INA-SQLDATA(2)?