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 |
What is the significance of 'above the line' and 'below the line'?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Why we need to use redefine clause when we can define the variable seperately... what is actual need....
Can we redefine the field of x(200) to less than 200?
WT R TECHNICAL MAINFRAME QUESTION ASKED IIN ANJANASOFTEARE??
using redefine can you redefine lower variable size to higher variable size?
which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks
Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.
what is SYNCHRONIZATION?
how can i see junk values in dclgen or in hostvariable of comp ?
01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?
Can we move X(7) to S9(7) COMP?