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
Write a program that uses move corresponding.
Which is not true about evaluate statement
What is the use of intialize verb?
Write a cobol program making use of the redefine clause.
What is the problem of ordered sequential files access?
What is the local-storage section?
What is a SSRANGE and NOSSRANGE?
) what is the difference between AID and HANDLE AID?
What is the Purpose of Pointer in the string?
How do get the result of your program directly on your pc?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What are the pertinent COBOL commands?
what happens if parmparameter passes zero bytes to the program