How do you retrieve the data from a nullable column?

Answer Posted / amol

We have to include one variable in working storage datatype
s9(4).

and while retriveing the value from nullable column we can
give ;host variable :null indicater. If value from column
is found to be null it will stoare in null indicater.

If we have not include the null indicater and value while
fetching found to be null the program will abend with
saqlcode -305.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is db2 restart?

1689


How to check last update on table in db2?

626


How can you find out the # of rows updated after an update statement?

637


What is load replace in db2?

560


What is the purpose of using commit?

616






Name the various locking levels available?

632


B37 abend during spufi?

979


How do I delete a table in db2?

644


How to retrieve rows from a db2 table in embedded sql?

721


Is db2 a mainframe?

581


What is the difference between db2 and oracle?

671


Is ibm db2 free?

573


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

7504


What is cursor stability in db2?

806


Name the lockable units in DB2?

663