DB2 Interview Questions
Questions Answers Views Company eMail

What techniques will be used to avoid deadlock??

IBM, SUN,

5 12763

we can code COPY DCLGEN or INCLUDE DCLGEN, At which stage of the precompilation , dclgen get expanded if we write 1) copy 2) include one question about dclgen.. Is it mandatory to use declare table in dclgen.. I think no...but it will be used by the precompiler to validate the table name,column name etc.., can one clear my doubt ..is it necessary to include declare table or not?

2 16513

One program calling 5 subprograms, its a cobol db2 program, after precompilation how many plans and packages will created?

3 16893

pls tell me abt the normalization five types....

2 4125

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.

Cap Gemini, Verizon,

4 9827

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 .

Cap Gemini, RBS,

3 11389

Can we able to find all the Table names under a Particular Plan?

CTS,

1 5629

1. what if null values retrived from database and no null indicator mentioned in query. What is sql code.

Cap Gemini,

1 7676

what is differnece between DROP TABLE & DELETE TABLE .

Cap Gemini,

4 9722

What if we fail to give values in columns declared as NOT NULL ?

Cap Gemini,

3 8372

What if , we failed to mentioed null indicator in sql select query , that may retrieve null value ?

Cap Gemini,

2 8153

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.

Cap Gemini,

1 5611

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

Cap Gemini,

3 11353

i know the stpes 2 create an executable CICS/DB2 cobol code. 1. DB2 Precompiler converts the SQL Statements into COBOL API statements and creates another member with Acess plans. CodeA results in CodeB (code with API calls) & CodeC ( Access Plans ) 2.Code B is compiled/linked 2 create an exceutable.(codeE) 3.Now CodeC is binded to the database on which CodeE will be run. Can somebody provide me the sample JCLs for precompile/compile/link/bind.

1946

How Plan is created while executing the query using SPUFI?

3 7342


Post New DB2 Questions

Un-Answered Questions { DB2 }

What is the use of db2 optimizer?

601


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

616


My sql statement select avg(salary) from emp yields inaccurate results. Why?

634


What are the bind parameters ibm db2?

615


Which are the db2 tools to protect integrity of the database?

680






What is the maximum size of a char data type in db2?

579


Explain the contention situations caused by locks?

580


How do you find the maximum value in a column in db2?

642


What are the rules for db2 programming?

634


How is deadlock resolved?

642


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

620


Are view updateable?

620


Explain package in db2 and its advantages?

586


What is alias in db2?

560


List out the buffer pools in db2

615