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
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What rules are followed by the search verb.
Explain how you can characterize tables in cobol?
Write down the divisions of cobol program?
What are different data types in cobol?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
How do you get the data to code the BMS macro?
Write the code implementing the perform … varying.
what happens if parmparameter passes zero bytes to the program
Can we redefine the field of x(200) to less than 200?
What is an in line perform? When would you use it? Anything else you wish to say about it.
How to print 10 to 1 if the input have only 10 digit number?