TACL Reference Manual

UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual429513-018
8-242
VCHANGE Command
string-2
is the string that is to replace string-1.
range
specifies the line or lines in which the change is to occur. If you omit it, all lines are
included. A range specification can be any of these:
A
line-num
line-num / line-num
A
specifies all lines in the variable level.
line-num
specifies an individual line number. It can be any of these:
F
L
number
F
specifies the first line in the variable level.
L
specifies the last line in the variable level.
number
is a positive integer identifying a specific line.
Considerations
VCHANGE is not case-sensitive. If, for example, you specify:
VCHANGE var "The" "A"
VCHANGE changes all occurrences of The, the, THE, or any other combinations
of uppercase or lowercase T, H, and E. For case-sensitive operations, you can use
the string-handling functions.
If string-1 is empty, no change occurs.
If string-1 or string-2 contains TACL metacharacters, the setting of the
#INFORMAT built-in variable (for input to the IN file, including input to an
interactive TACL process) or the ?FORMAT Directive on page 5-6 (for text in TACL
programs) can affect how TACL interprets the string. For more information, see the