how can u nderstand the sql stmts executed successfully or not ?



how can u nderstand the sql stmts executed successfully or not ?..

Answer / lu

Oh man, you have to check SQLCODE for each SQL
stament...SQLCODE = 0 it's good.... SQLCODE not = 0 it's
bad.
OR you look in SQLCA... verify this SQLERRD

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More DB2 Interview Questions

If a non-DB2 program calls a DB2 program, the calling program's name will be there in SYSIN of IKJEFT01 and the plan name will be that of the called program. But is a bind needed or a plan has to be created for the non-DB2 program also?

1 Answers   RBS,


What is the self-referencing constraint?

2 Answers  


What else is there in the PLAN apart from the access path?

1 Answers  


in db2, already 10 columns arie der, and i want to insert 11th column. what parameters u wil consider for insertion and how will u insert

1 Answers   TCS,


How many databases are there?

0 Answers  


In a DB2-CICS program which is acts as co-ordinator and which is participant?

1 Answers   IBM,


Which one allows duplicate values Union or Union All ?

3 Answers  


max number of columns in a db2 table?

6 Answers  


If I have 5 Queries in a DB2 Cobol program , while precompiling how many DBRMs will get created and How many Plans and Packages will get created while Bind Process?

8 Answers   Accenture,


Which transaction use a command thread ?

1 Answers  


What is correlated subquery?

1 Answers  


What is cursor?

2 Answers  


Categories