DB2 Interview Questions
Questions Answers Views Company eMail

How to resolve the -305 error code in DB2? And also please let me know, how to resolve the db2 error codes.

TCS,

7 68503

Is it possible to precompile if db2 goes down?

Target,

4 12538

Can we install 2 different versions of Db2 on same mainframe?

3 7800

I have a DB2 table which has 1000 rows.after udatingg first 110 rows, my job abends. Now what I have to do if I want to restart the job next time so that it should start updating from 111th row (without updating first 110 rows again).

Cap Gemini, Wipro,

10 54721

Do we have any optinon to search part of integer in DB2 as we have for character Like,SUBSTR optins?

1 8338

How to solved 818 error

Keane India Ltd, Wipro,

4 12964

what is commit & rollback? When and where is used while compiling a cobol-db2 program?

2 21622

How do you prepare a COBOL + DB2 program from coading till execution ?

Amdocs, Xansa,

1 9756

what are the frequent DB2 abends did you encounter in your programs ?? What are different SQL abends ??

Xansa,

4 12274

How do you Load a table ?? and what is Load replace ?

Xansa,

2 32182

what is a plan and how do you refer the plan in the program?

Xansa,

2 6048

why should we bind the DB2 program . What if we did not BIND a BD2 program ??

Infosys, TCS, Xansa,

9 32722

My DB2 program first read the data from a file and then it look into a table with the data it got from the file.If we did not bind the program , should the file read before SQL execution be success??

Xansa,

2 5091

what is copy pending and check pending ?

Xansa,

1 9795

what needs to be done if a table is in copy pending / check pending status?

Xansa,

5 21116


Post New DB2 Questions

Un-Answered Questions { DB2 }

How to fetch the last row from the table in SQL (db2)?

1035


can any one provide me the link for the db2 v7 & db2 v8 manual for Z/os? i need to know about the syntax of REORG in both versions & need to know the difference as well

1801


What is the result of open cursor statement?

636


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?

1936


What is temporal table in db2?

601






What is the function of logging in the db2 database?

638


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.

2149


How can you count the number of rows from a table tab?

633


When reorg is used?

670


Which component is used to execute the sql statements?

619


What is a db2 schema?

760


How to find the maximum value in a column in the db2 database?

606


While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?

1818


What is the use of reorg in db2?

602


How to rename a table in DB2 ?

637