how to u check the query is executing or not ?where will u check for sqlcode ?

Answers were Sorted based on User's Feedback



how to u check the query is executing or not ?where will u check for sqlcode ?..

Answer / lu

OH man...everytime, you execute a sql statement, u have to
check you SQLCODE = 0 or not = 0....this a basic using DB2,
Oracle....

Is This Answer Correct ?    6 Yes 2 No

how to u check the query is executing or not ?where will u check for sqlcode ?..

Answer / viswanath

thnks

Is This Answer Correct ?    0 Yes 0 No

how to u check the query is executing or not ?where will u check for sqlcode ?..

Answer / arun

If you want to check from DBA point of view.

I would suggest if the query is taking longer time you can
use any of the tools like detector and check how long the
query is running and how much cpu has been allocated to
this thread and how many get pages has been done how many
rows has been selected or inserted or updated.

We have tools to know the current status of the query.


If the query is simple and completes quickly SQL RC = 0 is
for the normal completion of the query

Is This Answer Correct ?    0 Yes 0 No

how to u check the query is executing or not ?where will u check for sqlcode ?..

Answer / anjireddy vintha

RUNTIME SUPERVISER WIL MONITER THE SQL QUERY'S AND IT WILL
GENERATE SQLCODE FOR EVERY EXEUTION OF SQL QUERY.

Is This Answer Correct ?    0 Yes 0 No

how to u check the query is executing or not ?where will u check for sqlcode ?..

Answer / nithinbalaji mariappan

You need to display SQL-ERR-D variable from SQL CA on your program. It will write a sql error code

Is This Answer Correct ?    0 Yes 0 No

how to u check the query is executing or not ?where will u check for sqlcode ?..

Answer / ankit.:-)

before embeding check that command in SPUFI and u will get
the sqlcode value , if it is successful means
sqlcode=0 ,then go for embeding into pgm

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More DB2 Interview Questions

how can you copy records present in a flat physical file to a database file(physical file).please explain in rpg400 with a simple example

1 Answers   CTS,


EXPLAIN has output with MATCHCOLS = 0. What does it mean?

2 Answers  


Where could you look if you had a question about whether a column has been defined as an index?

2 Answers  


How would you move a tablespace (using STOGROUP) to a different DASD volume allocated to that tablespace?

1 Answers  


How to find last record before record through SQLRPGLE?

1 Answers   IBM,






when i am trying to update a table having 1000 rows. the program abends.how we will come to know the last successful updated row was. we are not using any commit operations

3 Answers   IBM,


What is dbrm in db2 database?

0 Answers  


Mention data types used in db2 ?

0 Answers  


What is the use of dclgen in db2?

0 Answers  


Can All Users Have The Privilege To Use The SQL Statement Select (DML)?

1 Answers  


what is difference between Plan and Package

1 Answers   Syntel,


What are the uses of db2 optimizer?

0 Answers  


Categories