batchreplace
DATA
,
ARRAY
,
MAINSEP
,
SUBSEP

The batchreplace statement performs multiple find and replace operations on a piece of text.


Parameters

This statement has four parameters:

data – Name of the field or variable that contains the text to be changed.

array – Array containing pairs of words or phrases to change and the new words or phrases.

mainsep – Main separator between pairs of values.

subsep – Sub separator between each item within a pair.


Description

This statement performs multiple find and replace operations on a piece of text.

This example replaces any occurences of AZ, CA or OR with Arizona, California, and Oregon, respectively.

batchreplace text,"AZ,Arizona/CA,California/OR,Oregon","/",","

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.