Search code examples
mainframezosjcl

SORT to replace a column in JCL


Do you know a command to sort a file to replace a column with the same value in all the rows?

For example, I want to generate a new file with the same order as the original, except at the column 66 to 68, I want to put XX in all the rows.

Note: the row may have BINARY characters in some columns.


Solution

  • Founded, never mind

    //SYSIN    DD *
               SORT FIELDS=COPY
               OUTREC OVERLAY=(105:C'XXXXXX')