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

What is check constraint in db2?

1062


What are catalog tables in db2?

1030


what is db2 restart?

2134


Mention the definition of cobol in varchar field.

1225


What is the syntax for FETCH in DB2 ?

1187


My sql statement select avg(salary) from emp yields inaccurate results. Why?

1076


What are host variables in db2?

1027


How can the duplicate values be eliminated from db2 select?

1080


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

1035


What is db2? Explain.

1014


SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected

11663


What is the clustering index in the db2 database?

985


What are packages in db2?

1008


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

3562


Give the name of some fields form sqlca.

1056