Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



What value the host varible will contain , if null indicator value is -2 ? Will it contain the tru..

Answer / santy

That Host Variable contain the Truncated value when Null
Indicator conatin value -2.

Is This Answer Correct ?    18 Yes 2 No

What value the host varible will contain , if null indicator value is -2 ? Will it contain the tru..

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

What value the host varible will contain , if null indicator value is -2 ? Will it contain the tru..

Answer / prachi

The null-indicator variable is examined for a negative
value. If the value is not negative, the application can
use the returned value of the host variable. If the value
is negative, the fetched value is null and the host
variable should not be used. The database manager does not
change the value of the host variable in this case.

Note:
If the database configuration parameter dft_sqlmathwarn is
set to 'YES', the null-indicator variable value may be -2.
This value indicates a null that was either caused by
evaluating an expression with an arithmetic error, or by an
overflow while attempting to convert the numeric result
value to the host variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

Why PS file called Physical seqential file?How to sore data in sequential file and ESDS file? What is the use of DBRM,PLAN,package and Collection.

1 Answers  


What is the max length of sqlca?

0 Answers  


I HAVE 2 TABLES ONE IS EMP_TABLE AND ANOTHER DEPT_TABLE.EMP_TABLE CONTAINS NAME,DEPTNO,DEPTNAME,LOCATION AND DEPT_TABLE CONTAINS DEPTNO,DOJ(DATE OF JOINING).I WANT TO DISPLAY NAME,DEPTNAME,DOJ AND WHO ARE JOINED BETWEN 01- JAN-2007 TO 01-JAN-2008?

6 Answers   Perot Systems,


What are leaf pages?

3 Answers  


How and when does the db2 enforces the unique key?

0 Answers  


How do you declare a host variable (in COBOL) for an attribute named emp-name of type VARCHAR(25) ?

2 Answers   IBM, Tech Mahindra,


How would the varchar column remarks defined?

0 Answers  


What is copy pending and check pending in db2?

0 Answers  


WHAT IS MEANT BY COMMIT COMMAND?

7 Answers   Wipro,


What is host variable in db2 cobol?

0 Answers  


What do you need to do before you do EXPLAIN?

1 Answers  


What is an intent lock?

3 Answers  


Categories