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

Mention the definition of cobol in varchar field.

0 Answers  


In cursor program-1 can we create another cursor program-2 inside the cursor program-1.If yes how/no why ?

2 Answers   Wipro,


How can we retrieve the total number of records in RPG & CLLE?

0 Answers  


How to execute stored procedure in db2 command editor?

0 Answers  


What parameters are used to control the free space in DB2?

0 Answers  


What is the latest version of ibm db2?

0 Answers  


Which DB2 catalog tables are used to produce a list of table column by table for all tables in a database?

1 Answers  


Differentiate between cs and rr isolation levels? Where do you specify them?

0 Answers  


Could you please let me no the query for below I have table name xyx under this there is column name called employee name which starts from 100th column ends 120th column,now i want to replace only column from 101 to 104 which contains ABCS to replace with PQRS for all records which comes beetween 101 to 104 ..how to write query for this..

1 Answers   HSBC,


What is alias in db2?

0 Answers  


In which column of which DB2 catalog would you find the length of the rows for all tables?

2 Answers  


What is db2 optimizer?

0 Answers  


Categories