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 / 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 |
What is the difference between group by and order by?
This was related to -811 sqlcode, In a COBOL DB2 program which accesses employee table and selects rows for employee 'A', it should perform a paragraph s001-x if employee 'A' is present. In this case it gets -811 sqlcode, but still it process the paragraph s001-x. What could be wrong in my code.
What is plan in cobol db2?
what is a plan and how do you refer the plan in the program?
what is a collection?
What is a db2 tablespace?
what needs to be done if a table is in copy pending / check pending status?
What is correlated subquery?
What is a Cartesian product?
Name the different types of Table spaces.
What is the difference between IN subselects and EXISTS subselect?
What is a bind card?