What value the host varible will contain , if null
indicator value is -2 ? Will it contain the truncated value
or nothing will move ?

Answers were Sorted based on User's Feedback



What value the host varible will contain , if null indicator value is -2 ? Will it contain the tru..

Answer / santy

That Host Variable contain the Truncated value when Null
Indicator conatin value -2.

Is This Answer Correct ?    18 Yes 2 No

What value the host varible will contain , if null indicator value is -2 ? Will it contain the tru..

Answer / mk

If the null indicator value is -ve, then the field will
have null value. if -2 means then there is a data
conversion error resulted the null indicator set to -2, so
the field will have nothing.

Is This Answer Correct ?    7 Yes 2 No

What value the host varible will contain , if null indicator value is -2 ? Will it contain the tru..

Answer / prachi

The null-indicator variable is examined for a negative
value. If the value is not negative, the application can
use the returned value of the host variable. If the value
is negative, the fetched value is null and the host
variable should not be used. The database manager does not
change the value of the host variable in this case.

Note:
If the database configuration parameter dft_sqlmathwarn is
set to 'YES', the null-indicator variable value may be -2.
This value indicates a null that was either caused by
evaluating an expression with an arithmetic error, or by an
overflow while attempting to convert the numeric result
value to the host variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

Write a query to extract first 5 characters of a name in the column Stud_Name?

1 Answers   RBS,


What does a deadlock mean in DB2?

0 Answers  


how to take the back up of the DB2 table.

7 Answers  


What is the purpose of the SDSNLOAD dataset in the STEPLIB while running DB2 programs?

2 Answers  


What is the usage of open cursor command?

0 Answers  


How to check last update on table in db2?

0 Answers  


db2 restart logic ?

1 Answers   DELL, HTC, UHG,


Where is the access path logic created by the DB2 Optimizer stored?

1 Answers  


What information is contained in a SYSCOPY entry?

2 Answers  


What is db2 bind process?

0 Answers  


What does the RUNSTATS Utility do?

4 Answers  


How do I start db2 in windows?

0 Answers  


Categories