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 is length is cobol?
In COBOL programming, what is PERFORM? What is VARYING?
What are the different data types in cobol?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Which division and paragraphs are mandatory for a COBOL program?
In which area will you utilize 88 level items in cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Name the sections present in data division.
Difference between cobol and cobol-ii?
What is inspect in cobol ?
Write the code to count the sum of n natural numbers.
what is s000 u4087 error? please give the all error codes in cobol,jcl.
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 ?
Discuss about changing dataset name in proc.