How to read records which is in sequential file in reverse
order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my
doubt any one
Answer Posted / mastan ummadisetti
First read the file and add a sequence number to it.
Then use sort for descending the records based on sequence numbers.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
State the various causes of s0c1, s0c5 and s0c7.
What guidelines should be followed to write a structured cobol prgm?
Why occurs cannot be used in 01 level in COBOL?
How do you get the data to code the BMS macro?
What is the difference between Call and a Link?
Can we change the password using ALTER? anyone tried and changed?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
what is amode(24), amode(31), rmode(24) and rmode(any)?
A table has two indexes defined. Which one will be used by the SEARCH?
i need a small 3d program using inline and outline.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
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 ?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How do u write test cases?