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 db2 collection?

605


have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

1236


What is the use of dclgen in db2?

588


What are the contents of dclgen?

658


What does runstats do in db2?

607






Explain about dbrm.

609


How connect db2 database to datastage?

765


What is cloudant database?

643


What is reorg?

619


What is an instance database?

600


Define sqlca.

649


What's The Error Code For Unique Index Voilation?

652


What is dbrm? When it will be created?

599


How and when does the db2 enforces the unique key?

615


What is nvl in db2?

627