ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 


 

Company >> Cap Gemini >> Interview Questions >> DB2 Interview Questions
 
  H1B Visa Interview Questions (1)   Accounting AllOther Interview Questions (1)   WebMethods Interview Questions (1)
  Oracle Apps Financial Interview Questions (1)   CRM General Interview Questions (1)   SAP ALE IDocs Interview Questions (1)
  SAP Security Interview Questions (2)   Business Warehouse Interview Questions (3)   HR Interview Questions (13)
  FI CO Interview Questions (7)   SD Interview Questions (20)   ABAP Interview Questions (62)
  Basis Interview Questions (7)   Cognos Interview Questions (15)   Business Objects Interview Questions (2)
  Java Related AllOther Interview Questions (1)   Weblogic Interview Questions (1)   DB2 Interview Questions (10)
  CICS Interview Questions (1)   Test Cases Interview Questions (3)   QA Concepts Interview Questions (4)
  Manual Testing Interview Questions (19)   QTP Interview Questions (10)   WinRunner Interview Questions (1)
  Unix AllOther Interview Questions (1)   Unix Commands Interview Questions (2)   Oracle General Interview Questions (5)
  Dot Net Framework Interview Questions (1)   ASP.NET Interview Questions (1)   Visual Basic Interview Questions (1)
  Shell Script Interview Questions (1)   CGI Perl Interview Questions (1)   OOPS Interview Questions (1)
 
Back to Questions Page
Question   What value the host varible will contain , if null indicator value is -2 ? Will it contain the truncated value or nothing will move ? Rank Answer Posted By  
 Interview Question Submitted By :: Rahul
I also faced this Question!!   © ALL Interview .com
Answer
That Host Variable contain the Truncated value when Null 
Indicator conatin value -2.
 
0 Santy
 
 
Question   What if we try to insert the base table through updatable view , but failed to give a column value which is defined as NOT NULL. Rank Answer Posted By  
 Interview Question Submitted By :: Mangesh
I also faced this Question!!   © ALL Interview .com
Answer
get error code "-407"

-407 :- An UPDATE, INSERT or SET VALUE is NULL, but the 
object column defined as NOT NULL values.
 
0 Santy
 
 
Question   What if , we failed to mentioed null indicator in sql select query , that may retrieve null value ? Rank Answer Posted By  
 Interview Question Submitted By :: Mangesh
I also faced this Question!!   © ALL Interview .com
Answer
Sorry for the above answer :(

Please see the Correct answer, we will get the SQL error -
305

-305:- The NULL value cannot be assigned to output host 
variable number because no indicator variable is specified.
 
0 Santy
 
 
 
Answer
it will retrive the garbage value.
 
0 Santy
 
 
Question   What if we fail to give values in columns declared as NOT NULL ? Rank Answer Posted By  
 Interview Question Submitted By :: Mangesh
I also faced this Question!!   © ALL Interview .com
Answer
Please correct the above error defintation :-

-407 :- An UPDATE, INSERT or SET VALUE is NULL, but the 
object column defiend as NOT NULL values.
 
0 Santy_rathod007@yahoo.co.in
 
 
Answer
we will get the sql error code "-407"

-407 :- An UPDATE, INSERT or SET VALUE is NULL, but the 
object column cannot contain the NULL values.
 
0 Santy
 
 
Question   what is differnece between DROP TABLE & DELETE TABLE . Rank Answer Posted By  
 Interview Question Submitted By :: Mangesh
I also faced this Question!!   © ALL Interview .com
Answer
in DROP TABLE command it will remove the table containts as 
well as table structure from the database catalog, also it 
release all the storage space it has acquired previously.
we can't rollback it as it is a ddl command.

but in case of DELETE TABLE command it just delete all the 
records but not relaese the spaces it acquires .it can be 
rollback as it is a dml command.
 
0 Samir Kumar Sahoo.
 
 
Answer
DROP TABLe deletes the entire Structure of the TABLE from 
the database with all the datas it contain, DELETE TABLE 
deletes only the rows of the TABLE.
 
0 Santy
 
 
Answer
drop table deletes the entire structure from the database 
and it also removes entry from syscat.tables. but where as 
delete table  only deletes the rows in the table.
 
0 Durga Prasad
 
 
Question   1. what if null values retrived from database and no null indicator mentioned in query. What is sql code. Rank Answer Posted By  
 Interview Question Submitted By :: Mangesh
I also faced this Question!!   © ALL Interview .com
Answer
we will get the sql code "-305".

-305:- The NULL value cannot be assigned to output host 
variable number because no indicator variable is specified.
 
0 Santy
 
 
Question   My cobol program(not having any sql statements) is calling another cobol program ( having sql statements), what is needed for compilation and run in jcls . Rank Answer Posted By  
 Interview Question Submitted By :: Mangesh
I also faced this Question!!   © ALL Interview .com
Answer
Hi,

    Lets consider the name the calling prg. as PROG1 and 
called prg. as PROG2, Pgm PROG1 should be compiled as a 
normal CBL pgm, and Pgm. PROG2 should be compiled as a 
CoBoL-DB2 pgm. And the Run JCL should call the PGM PROG1, 
using IKJEFT01 pgm, since it calls pgm PROG2 with SQL 
statements. For the JCL u can refer to the JCLS link in the 
same website
 
0 Santy
 
 
Answer
Thanks Santy for all the answers .
 
0 Mangesh
 
 
Question   What error I will get if my select query gives multiple row while executing a Cobol-DB2 program.How can I solve it without using a cursor. Rank Answer Posted By  
 Interview Question Submitted By :: Mangesh
I also faced this Question!!   © ALL Interview .com
Answer
Thanks Debu & Santy
 
0 Mangesh
 
 
Answer
u will get -811 error code.

this will b solve in different way. first u have to find 
out y this error comes.
exmple :- 
    If u r selecting the address of the emp with help of 
Name key, then may b same name contain 2 different address, 
as per the business need, it may contain 1 defualt address 
and other is alternet address. 
    So as per the business need find out that which address 
u want to select, and as per this need u can use one flag 
veriable to differentiate these 2 address. make the change 
as per above in ur table. with the help of solution u can 
solve the above problem without using the cursor.
 
0 Santy
 
 
Answer
-811 ERROR CODE
 
0 Dedu
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com