Example: Character string expressions

These are examples of string expressions.

Assume the following variables:

Variable Value
&AA 'GOOD '
&BB 'REPLACEMENT'
&CC 'ALSO GOOD'
&DD 'METHOD'

The following table shows character string expressions and the result.

Expression Result
(&AA || &BB) GOOD REPLACEMENT
(&AA||&BB) GOOD REPLACEMENT
(&AA *CAT &BB) GOOD REPLACEMENT
   
(&CC |> &DD) ALSO GOOD METHOD
(&CC *BCAT &DD) ALSO GOOD METHOD
   
(A *CAT MOUSE) AMOUSE
('A ' *CAT MOUSE) A MOUSE
(FAST *CAT MOUSE) FASTMOUSE
('FAST ' *BCAT MOUSE) FAST MOUSE
('FAST ' *TCAT MOUSE) FASTMOUSE
('AB' *CAT 'CD') ABCD
('AB' *BCAT 'CD') AB CD
('AB' *TCAT 'CD') ABCD
(%SST(&AA 1 5) *CAT (%SST(&BB 3 5)) GOOD PLACE
(%SST(&CC 1 9) *BCAT (%SST(&BB 3 5)) ALSO GOOD PLACE
(&AA *CAT ' TIME') GOOD TIME
(&CC *BCAT TIME) ALSO GOOD TIME