How to resolve -407 sql code in DB2?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / king
This error occures when you are assigning NULL value to NOT
NULL column.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / lu
u have to check in DCLGEN if this column is null or not.
| Is This Answer Correct ? | 0 Yes | 1 No |
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 |
Is db2 a database?
Q1. How will you use two different DB2 qualifiers in a single COBOL program? Suppose we have 2 tables EMP1 and EMP2 with same structure defined in two different DB2 qualifiers QUAL1.EMP1 and QUAL2.EMP2 now during first 15 days we want to use QUAL1.EMP1 and rest of the days QUAL2.EMP2 how will we do this. We can create a single program and a single load for this program.
how 2 resolve the -311 sqlcode
I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?
Which command is used to connect to a database in DB2 ? Give the Syntax.
What is the size of a data page?
How to find last record before record through SQLRPGLE?
What is the purpose of the QUIESE Utility?
What is collection in db2 bind?
how can u retrieve the data from null values using applicaion program.
What is lock contention?
What types of tables are there in the db2 database?