Page 1 of 1

SQLCODE -305.

Posted: Mon Jun 09, 2014 1:29 pm
by Manju Mainframe
HI,

I am getting the SQLCODE as -305. How i can handle the sqlcode -305? Please guide me. I searched and it seems it's something to do with NULL values but I'm not sure how to go ahead with that info.

Thanks & Regrads,

Re: SQLCODE -305.

Posted: Tue Jun 10, 2014 12:33 am
by nicc
If it is because the program is retrieving a value that is null then you need to code for that by specifying a null indicator variable immediately after the 'real' variable. There is plenty of easily readable docco in the DB2 manual.

Re: SQLCODE -305.

Posted: Tue Jun 10, 2014 2:00 pm
by Manju Mainframe
Thanks nicc I'm working on it. I'm looking for an example, I think I'll get one soon.