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
What is the use of runstats in db2?
Define buffer pool.
How is the value function used?
What is consistency token in db2?
What is sqlca?
How to create backup table in db2?
What are the prerogatives?
What is the maximum No of rows per page?
How to check sequence on a table in db2?
What is cobol db2?
How to compare data between two tables in db2?
What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?
What is the maximum size of varchar data type in db2?
How to view db2 table structure?
What os does db2 run on?