In cursor program perform para varying until 1 by 1
fetch para cursor------close para
in the blank what will come for confirming in the database?



In cursor program perform para varying until 1 by 1 fetch para cursor------close para in the blank..

Answer / ekalavya

You can read the variables from SQLCA. For eg. you can
check SQLCODE.

Include SQLCA in the working storage of the progarm.

EXEC SQL
INCLUDE SQLCA
END-EXEC.

then check for the SQLCODE after your SQL query.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More DB2 Interview Questions

Is db2 a programming language?

0 Answers  


If the base table underlying a view is restructured, eg. attributes are added, does the application code accessing the view need to be redone?

2 Answers  


What is the use of dclgen in db2?

0 Answers  


is it compulsory commitment control in journal?

0 Answers   TCS,


What is a composite index and how does it differ from a multiple index?

1 Answers  






List down the data types in the db2 database.

0 Answers  


What is a system catalog table in db2?

0 Answers  


Why do we use cursor?

0 Answers  


how will i display the duplicate record's from a table... i don't want to eliminate ...i want to display the duplicate record...for example in my table i have 10 record's like record no(1,2,3,4,2,9,6,1) in this ...so i want to receive duplicates...

1 Answers   UST,


How would you find out the total number of rows in a db2 table?

0 Answers  


How many sub queries can you combine together ?

4 Answers   IBM,


One program calling 5 subprograms, its a cobol db2 program, after precompilation how many plans and packages will created?

3 Answers  


Categories