How to resolve -407 sql code in DB2?

Answers were Sorted based on User's Feedback



How to resolve -407 sql code in DB2?..

Answer / kk

Hi,

The coloumn declare not null.but we can try to inserted or
update that coloumn means -407 error will come.

Is This Answer Correct ?    12 Yes 3 No

How to resolve -407 sql code in DB2?..

Answer / anandrao

This error occures when you are assigning NULL value to NOT
NULL column.
You can wrap the variable with coalesce/value and default
it but it is totally dependant on business logic.

Is This Answer Correct ?    8 Yes 2 No

How to resolve -407 sql code in DB2?..

Answer / kk

hi,
sorry above answer coloumn difine not null but we are to
inserted null values that time -407 will come.

Is This Answer Correct ?    5 Yes 5 No

How to resolve -407 sql code in DB2?..

Answer / vikram and mangesh

yes but what are the different ways to resolve this
error.where will we check???

Is This Answer Correct ?    2 Yes 2 No

How to resolve -407 sql code in DB2?..

Answer / sathish kumar.b

hi.............
while retrieving data if any null values found in this
case -407 will occur.
how to resolve -407 is declare the null indicator variables.

Is This Answer Correct ?    2 Yes 2 No

How to resolve -407 sql code in DB2?..

Answer / king

This error occures when you are assigning NULL value to NOT
NULL column.

Is This Answer Correct ?    1 Yes 1 No

How to resolve -407 sql code in DB2?..

Answer / lu

u have to check in DCLGEN if this column is null or not.

Is This Answer Correct ?    0 Yes 1 No

How to resolve -407 sql code in DB2?..

Answer / vishal

The Error is not -407 for Null indicator but it is -307.
It should be handled carefully using host varaible in Pgm.

Is This Answer Correct ?    0 Yes 1 No

How to resolve -407 sql code in DB2?..

Answer / srinivas chennareddy

You can use null indicators.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More DB2 Interview Questions

What is image copy?

1 Answers   Virtusa,


How can you do the explain of a dynamic sql statement?

0 Answers  


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

0 Answers  


What does this mean ? GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;

4 Answers   Accenture,


What is an access path?

3 Answers  






Are views updateable?

0 Answers  


What is role in db2?

0 Answers  


how 2 resolve the -311 sqlcode

1 Answers  


What is null indicator in cobol db2?

0 Answers  


What is a data page?

1 Answers  


How to find the number of rows in a db2 table?

0 Answers  


Can a unique index have more than one null value? If not, what error code is given if an attempt is made to insert more than one null value?

3 Answers  


Categories