How to read the last 100 records from a COBOL file. The file
contains N number of records.
Answer Posted / guest
First move HIGH-VALUES to the key field and then read the
file.It will read the last record then put READ PREV in
loop 100 times to get the last 100 records.
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is a report item?
How do we get current date from system with century in COBOL?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What are declaratives and what are their uses in cobol?
how to convert the recors form vsam file to db2 table tru file aid
What rules are to be followed while using the corresponding options?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
How to print 10 to 1 if the input have only 10 digit number?
explain sorting techniques in cobol program?
How do you define a variable of comp-1 and comp-2?
What is redefines clause in COBOL?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What is the difference between structured cobol programming and object alternativelyiented cobol?
How can you get the ksds file records into your cobol program?
Define static linking and dynamic linking.