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
 
Categories  >>  Software  >>  MainFrame  >>  IBM MainFrame  >>  DB2
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
when we are tying to update a table having 100 rows. if the 
program abends when updating 51 row . how to start updating 
again  from the 51 row .what was the logic
 Question Submitted By :: Pratap
I also faced this Question!!     Rank Answer Posted By  
 
  Re: when we are tying to update a table having 100 rows. if the program abends when updating 51 row . how to start updating again from the 51 row .what was the logic
Answer
# 1
when we are tying to update a table having 100 rows.
if the program abends when updating 51 row . how to start 
updating again from the 51 row .
what was the logic 


Ans: The Possible answer would be..if you had used COMMIT 
before 51st ROW .. the Former records
would have been updated in the table .. If No COMMIt was 
used.. The whole transaction would have been 
ROLLBACKED.

Now If you want to start a fresh Transaction and want to 
start Updating directly from 51st Row 
Then There are two ways

1> Perform a loop to scroll till u have read 50 rows
   Then Point ur cursor as CURRENT  to the 51st Row
   Start Updating the Records Till end of table.

                   or 

2> Declare a  Scrollable cursor & use FETCH ABSOLUTE option 
to fetch a particular row directly 


   EXEC SQL FETCH ABSOLUTE +51 C1 
INTO :TEMP1, :TEMP2, :TEMP3;
 

this statement fetches the 51st row of the Table
 
Is This Answer Correct ?    4 Yes 3 No
Abhijit18in2002
 

 
 
 
Other DB2 Interview Questions
 
  Question Asked @ Answers
 
What will the DB2 optimizer do?  1
If a table has a column "dept" (declared to have nulls) and there are 10 rows in the table of which 3 have a null value in the dept column, what will select count(*) and select count(distinct dept) return?  3
quary for 1> fetch last record 2> fetch in reverse order 3> fetch last 5 row 4> fetch second last record (their is no primary key) i think concept of count can be use for this in 4th  5
I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this?  3
Can we use select * statement in cobol program without giving field names ??? Zensar3
what's the error code for Unique Index Violation?  2
What is the difference between TYPE 1 index & TYPE 2 index  1
what needs to be done if a table is in copy pending / check pending status? Xansa4
What is the difference between static and dynamic SQL?  1
What is index cardinality?  1
Can DASD types assigned to storage groups be intermixed (i.e., 3350s and 3380s)?  1
How do you declare a host variable (in COBOL) for an attribute named emp-name of type VARCHAR(25) ?  2
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? Perot-Systems5
I am getting a error multiple row fetched while executing a Cobol-DB2 program.How can I solve it without using a cursor.  6
What is DCLGEN ?  2
What is a lock?  1
What are the different methods of accessing db2 from tso? How is the connection established between TSO & DB2? Tech-Mahindra3
What are the four lockable units for DB2?  1
Which DB2 catalog tables are used to produce a list of table column by table for all tables in a database?  1
what is the Foreign key? explain?  2
 
For more DB2 Interview Questions Click Here 
 
 
 
 
 
   
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