I would like to use the findrep parameter to change strings in certain columns without affecting other colums.
The sort is
//SORTIN DD *
1234567890123456789012345678901234567890
A B C D
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FINDREP=(IN=C' ',OUT=C' ',STARTPOS=11,ENDPOS=20)
1234567890123456789012345678901234567890
A B C D
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FINDREP=(IN=C' ',OUT=C' ',STARTPOS=11,ENDPOS=20)
The output is
----+----1----+----2----+----3----+----4
1234567890123456789012345678901234567890
A B C D
1234567890123456789012345678901234567890
A B C D
The columns beyond 20 are reformatted and I don't like this.
Thanks
Max