I am getting a error multiple row fetched while executing a
Cobol-DB2 program.How can I solve it without using a cursor.
Answer Posted / raja mohan reddy
As of my knowledge,we cannot fetch multiple rows with out
using cursor in cobol db2, Let us see the breif explanation
When you are trying to fetch multiple rows with select
statement using perform loop it gives the result as
fetches the first row while fetching the second row program
will be end with sqlcode.
Here is the only one way to fetch multiple rows from db2
table using cobol. Please follw the following steps.
1.Declare a cursor ( we have to code SELECT statement with
our criteria)
2.Open the cursor
3.fetch the rows using cursor
4.Close the cursor
Please Let me know if you find any mis stated information
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Which component is responsible for db2 startup and shutdown?
what is the role of the cursor in db2?
List out the buffer pools in db2
What is the maximum size of varchar data type in db2?
What does db2 stand for?
What db2 400?
How can you classify the locks in db2?
What is copy pending status in db2?
List out the data types available.
What is the meaning concurrency in the db2 database?
What is package in db2 mainframe?
How can you count the number of rows from a table tab?
what is the responsibility of the construction superintendent
Define buffer pool.
What are the various isolation levels possible?