Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: Regarding COBOL Stored Procedure option - GENERAL WITH NULLS

$
0
0
Author: selvamsrinivasan85
Subject: Regarding COBOL Stored Procedure option - GENERAL WITH NULLS
Posted: Fri Nov 04, 2016 8:57 pm (GMT 5.5)

Hi all,

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.

Link : http://www.ibm.com/support/knowledgecenter/SSEPEK_11.0.0/apsg/src/tpc/db2z_xmpcobolstoredproceduregeneralwithnulls.html

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.
_________________
Thanks,
S.Srinivasan.


Viewing all articles
Browse latest Browse all 8500

Trending Articles