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

Write a program that uses move corresponding.

1073


Which is not true about evaluate statement

2394


What is the use of intialize verb?

1180


Write a cobol program making use of the redefine clause.

1121


What is the problem of ordered sequential files access?

1109


What is the local-storage section?

1103


What is a SSRANGE and NOSSRANGE?

1416


) what is the difference between AID and HANDLE AID?

2099


What is the Purpose of Pointer in the string?

1026


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

2295


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2415


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2324


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

1118


What are the pertinent COBOL commands?

3105


what happens if parmparameter passes zero bytes to the program

2082