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 / 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 |
Can we call a CICS program from a batch program or viceversa?If so, how?
With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?
write a program to eliminate duplicate records in a input file and send them to output file.
We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)
What is rmode(24)
how do u indetify files succesfully executed or not ?
WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFINED. WHAT IS THE DIFFERENCE AMONG ALL AND WHICH TYPE OF FORMAT SHOULD BE USED WHEN
How to execute a set of JCL statements from a COBOL program?
whats the disadvantage of search all over search?
How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?
how we rectify soc4 and soc7 error in project(need real time answer)? please reply
what is srange and nosrange pls reply to ths question ?