Joined: 09 Aug 2010 Posts: 16 Location: Coimbatore
I have coded a COBOL Stored procedure (DB2) program, for which I am facing 2 issues. I have went through the ibm knowledge center and did exactly the same.
1.Didn't coded Null variable as Out parameter in CREATE PROCEDURE (SP definition). All other IN and OUT parameters coded. Initially setting all the Null fields to true. Based on query result, I am setting Null variables to 0 and moving corresponding values to Out variables in COBOL SP. After running SP using IBM Rational tool, I am only able to see Null values in OUT parameters.
2. In that SP, I am selecting columns of more than 2 tables with Alias for identifcation. On Compiling, I am getting DSNH2061 W "STATEMENT REFERENCES COLUMN "A"."COLUMN_NAME" WHICH IS NOT DECLARED IN THE SPECIFIC TABLES. But the bind is successful.
While running in IBM Rational tool, Result sets are coming without column names of table. How to remove Alias and connect more than 2 tables.