How to read records from flat file in reverse order through
COBOL program?
Answer Posted / satty
we can read file in reverse order by using a dynamic array.
first transfer the ps into array and read it by -1 from
counter = no of records in the file
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What is an in line perform? When would you use it? Anything else you wish to say about it.
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
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
Why did you choose to work with ibm mainframe cobol programming?
what is difference between cobol and cobol/400
What is the utilization of copybook in cobol?
how to move the records from file to array table. give with code example
Which Search verb is equivalent to PERFORM…VARYING?
Describe the cobol database components?
Are you comfortable in cobol or jcl?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the difference between comp and comp-3 usage?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How do you reference the following file formats from cobol programs?
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 ?