What error I will get if my select query gives multiple
row while executing a Cobol-DB2 program.How can I solve it
without using a cursor.

Answer Posted / santy

u will get -811 error code.

this will b solve in different way. first u have to find
out y this error comes.
exmple :-
If u r selecting the address of the emp with help of
Name key, then may b same name contain 2 different address,
as per the business need, it may contain 1 defualt address
and other is alternet address.
So as per the business need find out that which address
u want to select, and as per this need u can use one flag
veriable to differentiate these 2 address. make the change
as per above in ur table. with the help of solution u can
solve the above problem without using the cursor.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why db2 is called db2?

595


How to find schema of a table in db2?

572


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

2688


What is rebind in db2?

576


What is cursor with hold option in db2?

613






How many databases are there?

592


What is image copy in db2?

574


Mention the downsides of page level lock.

711


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

751


Can you use max on a char column?

638


What is the maximum number of columns in a db2 table?

725


How do I change the column size in db2?

594


Before you give the explain statement, what are the prerogatives?

581


What are the benefits of using the db2 database?

662


what is utility for parm lib

1884