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

Which isolation level provides highest data integrity?

675


What is explain in db2?

656


Why db2 is called db2?

671


What is the meaning concurrency in the db2 database?

735


What is nvl in db2?

727






How do I add a column to an existing table in db2?

679


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

658


What are db2 objects?

718


What is declare cursor?

706


How do you pull up a query which was previously saved in qmf?

778


In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?

668


i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?

2152


What is bind in db2?

679


What is null indicator in db2?

716


What is a cursor in programming?

696