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
Answer / santy
That Host Variable contain the Truncated value when Null
Indicator conatin value -2.
| Is This Answer Correct ? | 18 Yes | 2 No |
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 |
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 |
What is the maximum No of rows per page?
Can you tell me how can you find out the # of rows updated after an update statement?
I want to fetch the 10th row of a table which has been changed.How can I do it without going thru all the rows.
what is a corelated subquerry?
I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.
Mention data types used in db2 ?
What is an alias?
What is a precompiler?
What is the advantage in De-normalizing tables in DB2?
What is meant by the attachment facility?
what is the difference between declaring the cursor in WS section and Procedure division?
in column y record abc.v abc.s xyz.j abc.h i wan only abc columns how to retrieve thi records