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

You cannot use 'Fetch first 1 row only' in a singleton
select in COBOL. Instead u can use 'SELECT TOP <colname>'
to get the first row in the result set.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the various locking levels available?

819


Mention some fields that are a part of sqlca.

771


Can you use max on a char column?

822


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

922


What is scrollable cursor in db2?

789


How to get the ddl of a table in db2?

856


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

819


Name the lockable units in DB2?

888


What is dbrm? What it contains? When it will be created?

793


What is ibm db2 connect?

738


What is schema in db2?

766


Explain package in db2 and its advantages?

817


List down the types of triggers in the db2 database?

765


What is a trigger in the db2 database?

787


How do I create a view in db2?

779