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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a cursor in programming?

807


What is db2 connect?

785


How do you concatenate the firstname and lastname from emp table to give a complete name?

796


What is a db2 cursor?

797


What is database reorganization?

822


What is the purpose of using commit?

816


What is difference between rollback and commit?

861


Describe major components of db2?

847


What is innodb buffer pool?

748


Can we insert update delete in view?

750


Define declaration generator (dclgen).

871


Can you use max on a char column?

822


What is iseries database?

777


What does reorg do in db2?

771


How to execute stored procedures?

831