The @SUFFIX statement is used to append a string to every line or string variable in each specified range (see also @PREFIX).
Operation | Operands | F mode, L mode |
@SUFFIX | { lines | svars } [,...] WITH string |
lines | One or more line ranges in which text is to be appended at the end of each |
svars | One or more ranges of string variables in which text is to be appended at |
string | String that is to be appended at the end of each line or string variable in The string is converted into the character set used by the work file or string |
If inserting the string would cause a line or string variable to exceed the maximum record length of 32768 characters then it is not inserted and the message EDT5474
is output.
If errors occur during processing (EDT5453
or EDT5474
) then the statement is aborted. Any lines and/or string variables which have been successfully modified up to this point retain their changes.
If the statement is interrupted with [K2] and the EDT session is continued with /INFORM-PROGRAM
then the processing of the statement is aborted and message EDT5501
is output.
Example
The string ONCE
is appended to lines 4 and 5.
The content of line 3 is appended to lines 4 and 5.
First of all, 5 blanks are appended to lines 4 and 5 and then the content of line 4 is appended to these same lines.