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 / santy

let consider,
First declear 2 count variables A,B.

first count all the records i.e. N and put it into A
varialbe.

compute statement B=A-100, i.e. B=N-100

now again use the read-para untill condition B=A

and in read para incrased the value of B=B+1 after each
read.

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we get current date from system with century in COBOL?

1375


Describe the cobol database components?

1172


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

2390


HOw can I get the negative sign while deduct high value from low value

2255


Which division and paragraphs are mandatory for a COBOL program?

1276


How do get the result of your program directly on your pc?

2340


What is the difference between Call and a Link?

1194


A table has two indexes defined. Which one will be used by the SEARCH?

1283


What is perform what is varying?

1166


Write down the divisions of cobol program?

1253


Mention the guidelines to write a structured cobol program?

1093


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

1216


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

2146


Write the code to count the sum of n natural numbers.

1206


Write a program to enter and display the names of students in a class using the occurs clause.

1206