Several routines provided by CHR have implications for the efficiency of applications which make heavy use of them. These routines when used judiciously present no efficiency problem, but when they are used indiscriminantly they can have a marked effect on execution times.
STRLEN = CHR_LEN( STRING ) CALL SUBN( STRING, STRLEN, STATUS )
or the substring that represents the filled part of the string may be passed to the subroutine, e.g.
STRLEN = CHR_LEN( STRING ) CALL SUBN( STRING( 1 : STRLEN ), STATUS )