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

can we view the access paths created by dbrm ? how ? thx

6242


What are foreign keys in db2?

614


Outputs of explain are with matchcols = 0. What does this signify?

617


What is image copy in db2?

566


What is an instance in db2?

563






What is db2 stogroup?

673


What are types of indexes?

591


What is the use of db2?

586


How can we retrieve the total number of records in RPG & CLLE?

194


What is the usage of open cursor command?

599


What is difference between rollback and commit?

625


what is the responsibility of the construction superintendent

1660


Which isolation level provides highest data integrity?

595


What is ibm db2 used for?

598


What is syscat in db2?

574