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


Please Help Members By Posting Answers For Below Questions

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

2103


how to convert the recors form vsam file to db2 table tru file aid

2972


What are various search techniques in cobol? Explain.

845


What is static and dynamic call in cobol?

771


What is the problem of ordered sequential files access?

894






What are INPUT PROCEDURE and OUTPUT PROCEDURE?

907


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.

6069


What are the different rules for performing sort operation?

936


Mention the guidelines to write a structured cobol program?

801


How to know whether the module is dynamical or statistical?

857


What is comp-1 and comp-2?

922


how to move the records from file to array table. give with code example

2411


What is the difference between perform … with test after and perform … with test before?

1131


What is the Purpose of POINTER Phrase in STRING command in COBOL?

948


How do you differentiate between cobol and cobol-ii?

836