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

System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2015


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1064


How you can characterize tables in cobol?

1150


how do you reference the ksds vsam file formats from cobol programs

1126


Why occurs cannot be used in 01 level in COBOL?

1125


Name the sections present in data division.

1176


What is rmode(24)

1100


Are you comfortable in cobol or jcl?

988


IF I mention stop run in CICS what happens?

2305


How are the next sentence and continue different from each other?

1227


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

1145


What is the difference between Global and External Variables?

1297


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1177


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2535


How do define dynamic array in cobol.

1087