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

what are decleratives in cobol?

2266


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1356


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

2488


What is amode(31)

1182


how do you define single dimensional array and multidimensional array in your cobol?

1112


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2402


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1216


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1413


What is length is cobol?

1107


Explain how to differentiate call by context by comparing it to other calls?

1191


Which Search verb is equivalent to PERFORM…VARYING?

1045


Name some of the examples of COBOl 11?

3148


What is the local-storage section?

1151


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2436


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1158