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 / marekj

I mean you want to fetch only the first row and the select
statement is correct. You have to use "fetch first 1 row
only" eg.
select name
from peoples
where name like 'A%'
fetch first 1 row only;

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a db2 cursor?

805


Explain the benefits you can get from mainframe connect?

730


Explain in detail about buffer manager and its functionalities?

782


Explain the contents that are a part of dclgen.

872


What is dbrm? What it contains?

904


How does db2 sample database connect?

779


What is scrollable cursor in db2?

799


What is deadlock in db2?

807


What is the information associated with sysibm.syslinks table?

880


Hello All, We have requirment to Replace BMC Db2 Load product thru CA FAST LOADPlus product. Do anyone have JCL to for FAST LOADPLUS and what all are thing need to take in consideration.

2524


How can you quickly find out the # of rows updated after an update statement?

797


What is syscat in db2?

777


My sql statement select avg(salary) from emp yields inaccurate results. Why?

855


What is the syntax for seeing the columns and data types of a table in the db2 database?

808


What do you mean by storage group (stogroup)?

764