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...

This was related to -811 sqlcode, In a COBOL DB2 program
which accesses employee table and selects rows for employee
'A', it should perform a paragraph s001-x if employee 'A'
is present. In this case it gets -811 sqlcode, but still it
process the paragraph s001-x. What could be wrong in my
code.

Answer Posted / srivalli janapati

Your code must not be using the CURSOR concept and NOT
handling the abend properly.When atleast CURSOR is not
being used in the code,there should be alteranative code to
handle when query resulted in retrieving multiple rows.

-811: is basically the SELECT query resulted in retrieving
more than a Row

Meaning,the resultant query must be retrieving more than a
row,and tried to push all the resualtant rows at a time for
the processing.COBOL-DB2 program can't handle this
situation as it expects a row at a time and then ABENDS.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is check constraint in db2?

1092


What is rct?

1239


What is the max length of sqlca?

1218


Mention data types used in db2 ?

1166


What is the use of reorg in db2?

1087


How do you eliminate duplicate values in db2?

1198


What is the difference between spufi and qmf?

1135


How do I connect my db2 database to ibm?

1051


What is consistency token in db2?

1147


What are the rules for db2 programming?

1097


What is cobol db2?

1003


What is dbrm? What it contains? When it will be created?

1051


What is ibm db2 used for?

1085


Where can you declare a cursor in a cobol-db2 program?

1078


How to resolve deadlock issue

20144