Changes one string to another. For more details on changing to or from strings of different length, see Change Command "From" and "To" Character Strings of Different Lengths.
Note: If you are editing a PDS member, you can use the PDSCHG command to set the mode for the CHANGE command.
Syntax:
CHANGE
fromstr tostr
[FIRST|LAST|NEXT|PREV|ALL]
[WORD|PREFIX|SUFFIX|CHAR]
[label1 label2]
[lcol rcol]
[X|NX]
Syntax Description:
Specifies the from string. Enter a string in one of the following formats:
(C'ccc')
(T'ccc')
X'xx'
PLn'vvv' or P'y'
(UC'ccc')
(UT'ccc')
Note: For more information on specifying a packed-decimal expression, see Rules for Finding Packed Strings on the FIND Command.
Specifies the to string. Enter a string in one of the following formats:
(C'ccc')
(T'ccc')
X'xx'
PLn'vvv' or P'y'
(UC'ccc')
(UT'ccc')
Starts search at the beginning of the data set, and locates and changes the first occurrence of fromstr.
Starts search at the end of the data set, and locates and changes the last occurrence of fromstr.
Starts from the current cursor position, and locates locates and changes the next occurrence of fromstr.
Starts from the current cursor position, and locates and changes the previous occurrence of fromstr.
Changes all occurrences of fromstr.
Changes only complete words in the fromstr.
Changes only words that begin with the fromstr.
Changes only words that end with the fromstr.
Changes the fromstr in any part of a word.
Specifies the start point in a range of lines to which the CHANGE command is applied.
Specifies the end point in a range of lines to which the CHANGE command is applied.
Specifies the leftmost column in which fromstr can appear. If rcol is not also specified, fromstr must begin in lcol.
Specifies the rightmost column in which fromstr can appear.
The CHANGE command is only applied to excluded lines.
The CHANGE command is note applied to excluded lines.
Alias: C, CHG
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|