SQLCODE -305.

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Manju Mainframe
Registered Member
Posts: 24
Joined: Mon Aug 12, 2013 10:50 am

SQLCODE -305.

Post 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,
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: SQLCODE -305.

Post 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.
Regards
Nic
Manju Mainframe
Registered Member
Posts: 24
Joined: Mon Aug 12, 2013 10:50 am

Re: SQLCODE -305.

Post by Manju Mainframe »

Thanks nicc I'm working on it. I'm looking for an example, I think I'll get one soon.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”