&LENGTH with DBCS
The &LENGTH built-in function is used to determine the length of a piece of data. If an &CONTROL DBCSN option is in effect (or a DBCSP option which is functioning as DBCSN), the length returned will be adjusted to exclude any shift characters from the length.
nwmsol
The &LENGTH built-in function is used to determine the length of a piece of data. If an &CONTROL DBCSN option is in effect (or a DBCSP option which is functioning as DBCSN), the length returned will be adjusted to exclude any shift characters from the length.
Examples: &LENGTH
&CONTROL DBCS &A = &LENGTH AA<.A.B>BB
results in
&A = 10
The shift characters are included in the length.
&CONTROL DBCSN &A = &LENGTH AA<.A.B>BB
results in
&A = 8
The shift characters are not included in the length.