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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dbrm? When it will be created?

610


How to compare data between two tables in db2?

668


Mention the different locking levels that are available in db2.

659


How many types of page locks can be held in db2?

605


How to retrieve rows from a db2 table in embedded sql?

749






Mention the definition of cobol in varchar field.

706


Explain about mirror activator disk mirroring?

566


Which isolation level provides highest data integrity?

609


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

2701


what are bind concepts in db2 cobol?

667


What is dclgen in db2?

695


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

645


What is load utility in db2?

679


How to find primary key of a table in db2?

626


How can you count the number of rows from a table tab?

647