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 are db2 tables?

0 Answers  


What is catalog database in db2?

0 Answers  


What are the three DB2 date and time data types and their associated functions?

1 Answers  


Can i insert bulk records into a db2 table using qmf of spufi only............!!!

2 Answers  


What is copy pending status in db2?

0 Answers  






Can you tell me how can you find out the # of rows updated after an update statement?

0 Answers  


What is the maximum No of rows per page?

0 Answers   IBM,


the dd name for ksds is dest1 and what is the dd name for alternate index of ksds ? a.dest b.dest1 c.dest1a d.dd1

2 Answers   Logica CMG,


Name the lockable units in DB2?

0 Answers  


What is FREEPAGE and PCTFREE in TABLESPACE creation?

1 Answers  


What is the function of the Data Manager?

2 Answers  


how does the defining of a stored procedure effect the size of a DB2 data base A) it increases the size of a data base B) it decreases the size of a data base C) it does not effect the size of the data base D) it changes the table space structures

2 Answers   Accenture,


Categories