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

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

1279


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1385


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1442


Whats the difference between search & search ALL?

6663


Explain what you understand by passing by value.

1202


What is the difference between external and global variables in COBOL?

1543


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

2517


How do you differentiate between cobol and cobol-ii?

1282


Which mode is used to operate the sequential file?

1256


What are the different rules to perform a Search?

1141


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

2289


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1147


Which division and paragraphs are mandatory for a COBOL program?

1332


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

1260


How to know whether the module is dynamical or statistical?

1212