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 the last 100 records from a COBOL file. The file
contains N number of records.

Answer Posted / kk

Hi,
u declare two count variable.first count all the
records.then using compute statement count - 100.now move
the count no to second one.now again use read at end.now
give the condition grater than count-2 display rec.

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the compute verb? How is it used?

1138


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9102


) how do u code after getting data?

2148


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1226


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1113


How to know whether the module is dynamical or statistical?

1134


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

1146


What is a scope terminator give example?

1105


What is redefines clause in COBOL?

1290


Write some characteristics of cobol as means of business language.

1142


What is the difference between binary search and sequential search?

1087


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

1166


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

2477


What is the utilization of copybook in cobol?

1183


For rewrite, why is it mandatory that file needs to be opened?

1104