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

I am getting a error multiple row fetched while executing a
Cobol-DB2 program.How can I solve it without using a cursor.

Answer Posted / raja mohan reddy

As of my knowledge,we cannot fetch multiple rows with out
using cursor in cobol db2, Let us see the breif explanation

When you are trying to fetch multiple rows with select
statement using perform loop it gives the result as
fetches the first row while fetching the second row program
will be end with sqlcode.

Here is the only one way to fetch multiple rows from db2
table using cobol. Please follw the following steps.

1.Declare a cursor ( we have to code SELECT statement with
our criteria)
2.Open the cursor
3.fetch the rows using cursor
4.Close the cursor

Please Let me know if you find any mis stated information

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between bind and rebind in db2?

1443


What is the difference between drop table and delete table?

1198


Explain correlated sub-queries.

1019


Comment whether the cursor is closed during commit or not.

1090


What is data manager?

1040


Mention the location where the output received from explain statement is stored.

1117


What is the difference between db2 and oracle?

1115


what is the sqlcode -501

13104


How to connect to db2 database from windows command line?

1047


What do you mean by cursor?

988


What are the bind parameters ibm db2?

1035


What is sqlca?

1055


What is dpf in db2?

1095


Is ibm db2 open source?

1060


How can the duplicate values be eliminated from db2 select?

1091