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

How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1124


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17818


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2495


What is the Purpose of Pointer in the string?

1040


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1305


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

2440


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1197


) what is the difference between AID and HANDLE AID?

2110


What is difference between static and dynamic call in cobol?

1323


What are the different rules to perform a Search?

1055


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2495


Can we change the password using ALTER? anyone tried and changed?

1968


Give some examples of command terminators?

1215


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

1469


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2415