Returns a character string that is made up of a base string plus the substitution of arguments in the string. It allows you to use a single string in place of concatenated strings. The function is designed to simplify the task of translating an application from one language to another and is similar to the sprintf function in the C programming language. The data type returned reflects the data type used in its input parameter. For example, if the input parameter is a LONGCHAR, then the function returns a LONGCHAR; if the input parameter is a CHARACTER, then the function returns a CHARACTER.
A CHARACTER or LONGCHAR variable optionally containing substitution parameters of the form &n, where n is an integer between 1 and 9, inclusive.
A constant, field name, variable, or expression that results in a CHARACTER or LONGCHAR value. These argument values replace substitution parameters in base-string.
These statements display the same message:
You can alter the position of the substitution parameters, as in this statement:
The previous code fragment displays the following line: