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

How can you find out which query is taking lot of time to execute in cobol-db2 program ?

1 Answers   Danske,


What does a deadlock mean in DB2?

0 Answers  


How many clustering indexes can be defined for a table?

2 Answers  


Is schema the same as database?

0 Answers  


How many Buffer pools are there in DB2 and what are they?

1 Answers   IBM,






What if we fail to give values in columns declared as NOT NULL ?

3 Answers   Cap Gemini,


How do you stop a db2 database in linux?

0 Answers  


What is a NULL value? What are the pros and cons of using NULLS?

2 Answers  


My cobol program(not having any sql statements) is calling another cobol program ( having sql statements), what is needed for compilation and run in jcls .

3 Answers   Cap Gemini, RBS,


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,


List out the buffer pools in db2

0 Answers  


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

1 Answers  


Categories