Hi,
I have written a DB2 query to fetch a column from table depending on certain where clause. Query is returning the value present in the column but its setting SQL return code to true. I have coded my program in such a way that it abends if SQL code other 0 comes.
Please help on how to resolve this problem.
Thanks in advance.
EXEC SQL
SELECT
column_name
INTO
:table.column_name
FROM
table A1
WHERE
A1.date = :WS-currentdate AND
A1.loan_number = :table.column-name1 AND
A1.loan_code = :table.column-name2
END-EXEC