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 advantage of sync class
how to move the records from file to array table. give with code example
how to access the file from prodution from changeman tool and to submit a file to production
How can we know that cobol program is using report file or simple file....?
wht is the diff b/w if and evaluate stmts ?
How to read the last 100 records from a COBOL file. The file contains N number of records.
what is Pic 9v99 Indicates?
hi friends,can any one post the ibm mainframe inteqview questions for 1year exp candidate,for itc infotech interview?. have any body attended for this in the past?...
How many maximum number of procedures can we write in one COBOL program?
i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS
Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?
which is better either static call or dynamic call? and why?