Previous Topic: NCL Function Changes with &CONTROL DBCS Options

Next Topic: &CONCAT


&ASISTR

The &ASISTR built-in function is used to assign data to a variable. If an &CONTROL DBCS, DBCSN or DBCSP option is in effect, and the data ends with a DBCS string which does not contain a shift in character to identify the end of the DBCS string, the &ASISTR function adds a shift in character to the end of the data before assignment takes place. This is useful for avoiding syntax errors which occur due to processing incomplete DBCS strings.

Example: &ASISTR

&A contains the value <.A.B.C
&CONTROL DBCS&A = &ASISTR &A

results in

&A = <.A.B.C>