Hi...................
I have records like this
aaaa
cccc
bbbb
And i want output like this
bbbb
cccc
aaaa
How can it possible ?.
Note:Please make sure records are in unsorted order.
somebody plzzz help me.
Answer Posted / nsingh
SORT FIELDS=COPY
OUTREC FIELDS=(1,80,SEQNUM,ZD,4)
It will add sequence number at position 81 of 4 bytes in
ascending order.
Now Sort the sequence number in descending order to reverse
the sequence and then remove sequence number from file.
SORT FIELDS=(81,4,ZD,D)
OUTREC FIELDS=(1,80)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between Call and a Link?
Can you please let me know the centre name of INS certification in Kolkata.
how do you reference the printer file formats from cobol programs
what is the difference between COBOL2 AND COBOL390?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Explain what you understand by passing by value.
Explain the configuration section of a cobol program with examples of syntax.
explain sorting techniques in cobol program?
What is length is cobol?
What are the pertinent COBOL commands?
Write a program that uses move corresponding.
What is inspect in cobol ?
What is rmode(any) ?
How to know whether the module is dynamical or statistical?
Write a program to explain size error.