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
A table has two indexes defined. Which one will be used by the SEARCH?
) what is the difference between AID and HANDLE AID?
What do you understand by psb and acb?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Whats the difference between search & search ALL?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
How many bytes S(8) comp field occupy and its maximum value?
How to know whether the module is dynamical or statistical?
When is inspect verb is used in cobol?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
what is search and searchall?what is the diffrence between them?give an best example?
What are the pertinent COBOL
what is amode(24), amode(31), rmode(24) and rmode(any)?
what is s000 u4087 error? please give the all error codes in cobol,jcl.