What value the host varible will contain , if null
indicator value is -2 ? Will it contain the truncated value
or nothing will move ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a bind card?

681


What is the latest version of ibm db2?

740


What is nvl in db2?

628


How do I optimize a query in db2?

624


How does coalesce work?

587






What is the physical storage length of timestamp data type?

646


can we view the access paths created by dbrm ? how ? thx

6262


What is data manager?

610


What are the uses of db2 optimizer?

818


Explain about open switch business continuity software?

563


What is db2 bind?

640


How to get the ddl of a table in db2?

679


SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.

2155


I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

1938


What is the difference between using bind () and rebind () methods of naming class?

796