How to read the last 100 records from a COBOL file. The file
contains N number of records.
Answer Posted / m.rajasekaran
Hi Mobi and Remya,
logic is correct
But in PARA2 u have coded that COMPUTE C = C + 1, How it
will work?
You should have moved B to C after calculating the value
of B in PARA1.Then only this code will work.
Let me know if any mistake in my answer.
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
how to convert the recors form vsam file to db2 table tru file aid
What are various search techniques in cobol? Explain.
What is static and dynamic call in cobol?
What is the problem of ordered sequential files access?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What are the different rules for performing sort operation?
Mention the guidelines to write a structured cobol program?
How to know whether the module is dynamical or statistical?
What is comp-1 and comp-2?
how to move the records from file to array table. give with code example
What is the difference between perform … with test after and perform … with test before?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How do you differentiate between cobol and cobol-ii?