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 Purpose of Pointer in the string?

1125


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

2597


What is comp-1 and comp-2?

1278


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

1204


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

2077


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

1304


What are the pertinent COBOL commands?

3232


What are the different open modes available in cobol?

1243


Can a Search can be done on a table with or without Index?

1330


How do you define a variable of comp-1 and comp-2?

1258


Difference between array and sub-script ?

1706


Explain the configuration section of a cobol program with examples of syntax.

1257


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3317


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

1297


how to convert the recors form vsam file to db2 table tru file aid

3311