Search code examples
mainframe

Replacing a string in Mainframe dataset


Can we replace part of data with another string in Mainframe? e.g. Suppose I have a PS of length 80. From col 72 to 80 some line numbers are present. I want to change these line numbers by particular string say TEST. Can we use any form of "C ALL" to achieve this??? ABC File---

=COLS> -1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
000004    text123                                                      12360002
000005    textabc                                                      12370002

Regards, Saisha


Solution

  • You can do this in the ISPF editor (which is clear from your example) easily: C p‘#’ ‘TEST’ 72-80 will replace any numeric string in columns 72 through 80 with "TEST".