CHR_PREFX

Prefix a string with a substring

Description:

The substring STR1 is prefixed to the string STR2, moving the string STR2 along to make room. The given string in STR2 may be truncated by adding the prefix. The final length of the string STR2, ignoring trailing blanks, is returned in LEN2.

Invocation

CALL CHR_PREFX( STR1, STR2, LEN2 )

Arguments

STR1 = CHARACTER ( ) (Given)
The prefix string.
STR2 = CHARACTER ( ) (Given and Returned)
The string to be prefixed.
LEN2 = INTEGER (Returned)
The resultant length of the string STR2, ignoring trailing blanks.