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

How to read records which is in sequential file in reverse
order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my
doubt any one

Answer Posted / mustafa i

Abhishekh your logic is correct
just to add to it
we can even do it by reading the file only once.

1)Read File & Move into an array until EOF also increment a
counter after every read.

3)By decrementing the Counter and using it as subscript
we can now read the array and hence the file in
reverse order.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you used comp and comp-3 in your project? And how?

2459


What are the different open modes available in cobol?

1174


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1485


how to refer the data field?

2249


What is the difference between binary search and sequential search?

1070


What is perform what is varying?

1138


What is the difference between external and global variables in COBOL?

1432


How to print 10 to 1 if the input have only 10 digit number?

1243


What is the difference between comp and comp-3?

1170


What is the difference between Global and External Variables?

1357


What is static and dynamic call in cobol?

1047


How you can read the file from bottom?

1130


Write down the divisions of cobol program?

1224


What is rmode(any) ?

1238


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1138