How to read records from flat file in reverse order through
COBOL program?
Answer Posted / pa
Being a flat file, we cant be sure that it will have a unique key field. So, External to the cobol program , using SORT utility, we can add a serial no column, and then SORT it in descending order based on that column and read the file sequentially in COBOL program.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are 77 levels used for?
how do you reference the esds vsam file formats from cobol programs
how do you reference the fixed unblock file formats from cobol programs
What are the different rules of SORT operation?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What is the local-storage section?
How arrays can be defined in COBOL?
How do we get current date from system with century in COBOL?
Why would you use find and get rather than to obtain?
What rules are followed by the search verb.
Can you please let me know the centre name of INS certification in Kolkata.
What the difference is between continue and next sentence?
) what is the difference between AID and HANDLE AID?