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
What kind of error is trapped by on size error option?
In COBOL, what is the different between index and subscript?
What are 77 levels used for?
What is an in line perform? When would you use it? Anything else you wish to say about it.
what is difference between cobol and cobol/400
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
Differentiate between structured cobol programming and object-oriented cobol programming.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Name the divisions, which are available in a cobol program?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
For rewrite, why is it mandatory that file needs to be opened?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is rmode(any) ?
What is the difference between comp and comp-3?