-1

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.

piet.t
  • 11,718
  • 21
  • 43
  • 52
Nico
  • 309
  • 1
  • 3
  • 18
  • Have a look at the outrec option https://www.google.com.au/search?q=sort+outrec&ie=utf-8&oe=utf-8&gws_rd=cr&ei=nHzLVuLyA6TImAXVw7bADQ (also inrec could be used if you do not need to sort on the field) – Bruce Martin Feb 22 '16 at 21:27

1 Answers1

0

Founded, never mind

//SYSIN    DD *
           SORT FIELDS=COPY
           OUTREC OVERLAY=(105:C'XXXXXX')
Nico
  • 309
  • 1
  • 3
  • 18
  • Please use the edit link on your question to add additional information. The Post Answer button should be used only for complete answers to the question. - [From Review](/review/low-quality-posts/11366641) – wogsland Feb 24 '16 at 01:16
  • @wogsland it is a full answer. "How do I overlay a value in a record?" - use OVERLAY. It is difficult to expand upon. It would be better to close the question, but what reason would fit? – Bill Woodger Feb 24 '16 at 09:24