when we are trying to update db2 rows. if the program
abends . how we will know that the last successful update
row was

Answers were Sorted based on User's Feedback



when we are trying to update db2 rows. if the program abends . how we will know that the last succ..

Answer / jagan

In SQLCA , we have field named SQLERRD . In SQLERRD(3) , the
no of rows successful updated (or) inserted can be found .

Is This Answer Correct ?    15 Yes 2 No

when we are trying to update db2 rows. if the program abends . how we will know that the last succ..

Answer / vinay srivastava

We can go in Abend Aid and look for the source listing where
we can find the last values stored in Host Variables where
the Job Abended.

Is This Answer Correct ?    1 Yes 0 No

when we are trying to update db2 rows. if the program abends . how we will know that the last succ..

Answer / lenin

In cobol program, we can create one counter after each
successful update. So by checking the counter value we can
find out howmany rows are updated.

Please correct me if i am wrong..

Is This Answer Correct ?    1 Yes 1 No

when we are trying to update db2 rows. if the program abends . how we will know that the last succ..

Answer / ramesh m

You can do the select query and in where condition, you
have to query for current timestamp for the particular row.

Is This Answer Correct ?    1 Yes 2 No

when we are trying to update db2 rows. if the program abends . how we will know that the last succ..

Answer / prachi

check for sqlca.sqlerrd[2] -
as it indicates the number of rows processed before the
error occurred in a multirow INSERT, UPDATE, or DELETE
statement.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More DB2 Interview Questions

What is a view? Why use it?

3 Answers  


What is db2?

0 Answers  


Can a primary key have null values? If we try to insert a null value in a primary key column, will it work or give an error code?

6 Answers  


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

0 Answers  


What is db2 optimizer?

0 Answers  






Can we use group-by clause in sub-query? If 'yes' means,Will it be executed successfully or else If 'no' means why should we not using that method? Give me your suggestion please....

1 Answers  


How many clustering indexes can be defined for a table?

2 Answers  


What is a db2 package?

0 Answers  


For Null indicator we have 3 values 0,-1,-2. 0->Not nulll -1->Null -2->Value truncated If ther is any possibility to have any positive value other than 0 in Null indicator.If it is so then when we will get and what is the value?

1 Answers   BNP Paribas,


Can we use select * statement in cobol program without giving field names ???

3 Answers   Zensar,


which authority can be granted to group of users using the GRANT stmt? A) SYSCTRL B) SYSADM C) DBCTRL D) DB ADM

3 Answers   Accenture,


How do u achieve record level locking in DB2 versions when record level locking is not allowed?

2 Answers   IBM,


Categories