Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is db2 relational database?

983


What is the difference between bind and rebind in db2?

1458


What are the prerogatives?

1084


Can there be more than one cursor open for any program?

1173


Which are the db2 tools to protect integrity of the database?

1124


What is a system catalog table in db2?

1191


What is phantom read in db2?

1165


How do I import a csv file into db2?

995


How does db2 sample database connect?

1034


Explain about dbrm.

1051


Explain the benefits you can get from mainframe connect?

974


How can we read records for specific member in CL? AND rpg?

706


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

1044


How to check table size in db2 sap?

1044


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

1187