how can u retrieve the data from null values using
applicaion program.

Answers were Sorted based on User's Feedback



how can u retrieve the data from null values using applicaion program...

Answer / avinash

The null indicator would be assigned a value of -1 if the
fetched column has a null value.

Is This Answer Correct ?    15 Yes 0 No

how can u retrieve the data from null values using applicaion program...

Answer / prachi

whenever you are retreving the data from null coloumn,
first you need to declare the null indicator in the working
storage section. and use this variable when you are
fecthing the data from null coloumn.

Is This Answer Correct ?    9 Yes 0 No

how can u retrieve the data from null values using applicaion program...

Answer / bhavani

When we retrieve data from a nullable field, we need to
have a null indicator declared in the working storage.

WS-NULL-INDICATOR s9(04) comp

And after you have fetched the value for that column,

we need to check the value of the null indicator.

It can have the following values

-2 - Exceptional condition
-1 - Null Value is present in that field
0 - Not null

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is the usage of open cursor command?

0 Answers  


What is the use of with ur in db2?

0 Answers  


wht displays the number of times a query modified ?

2 Answers   TCS,


why should we bind the DB2 program . What if we did not BIND a BD2 program ??

9 Answers   Infosys, TCS, Xansa,


What is dclgen in db2?

0 Answers  






How to find the number of rows in db2 tables?

0 Answers  


cursor with hold explain ?

1 Answers   Verizon,


How do I import data from excel to db2?

0 Answers  


What is QUIESCE?

2 Answers  


Shall i use this query to retrieve first 4 records, Select empno, sal from emptbl where empno < 5. like this can we fetch first 100 records?

3 Answers  


How can you split a table in to exactly half?

7 Answers   HSBC,


how can u retrieve the data from null values using applicaion program.

3 Answers   TCS,


Categories