mrgnndhmk
New User
Joined: 01 Feb 2006 Posts: 51 Location: India
|
|
|
|
Hi There,
I am trying to find & replace a string using CA-SORT
I see examples for DFSORT & SYNCSORT but not for CA-SORT.
Is there any option available in CA-SORT for find & replace like OUTREC FINDREP?
I am trying this.
1.
Code: |
17207 18:59:57 STC87010 COADMST
17217 20:38:07 STC87010 COADMST
17222 19:41:34 STC87010 COADMST
17226 19:01:52 STC87010 COADMST
OUTREC FIELDS=(25,08,
66X,
C'00001#')
SORT FIELDS=COPY
|
2.
Code: |
COADMST 00001#
COADMST 00001#
COADMST 00001#
COADMST 00001#
COADMST 00001#
SORT FIELDS=(1,8,CH,A)
SUM FIELDS=(76,5,ZD)
|
3.
SUM FIELDS is giving the SUM with alphabet as the ending character
Code: |
COADMST 0002D#
COAD001 0003D#
COAD002 00001#
|
4.
I want to replace say D with 4
Code: |
SORT FIELDS=COPY
OUTREC FINDREP=(IN=C'B#',OUT=C'2#')
|
|
|