next previous up contents index
Next: COPY Previous: COMPRESS Up: The Commands in Detail


CONCAT   [/string/|n]
CON

reverse command: SSPLIT

With this command you concatenate the record of the current line with the following record that disappears as an independent record, as a consequence.

If you do not specify a parameter, the following record is placed immediately behind the last character (no space) in the current line.

If you specify a character string, it is placed between the two records to concatenate. A frequent application of this is to put a space between the two parts.

Instead of a character string you may also specify a column. The column designs the place in the record of the current line where the content of the following line should be placed. If the column is behind the last character (no space), additional blanks are inserted. If the column specified comes before the end of the current record, the characters of the second record overwrite the characters of the current line. If the second record is short enough, the rest of the characters of the current line remains. The behaviour of CONCAT is similar to the behaviour of the command REPLACE. The only difference is that the characters to be inserted do not have to be specified but are taken from the second record.

The following example illustrates this; the first line is the current line.


    With kind
    regards
command result
concat With kindregards
concat / / With kind regards
concat 14 With kind   regards
concat 2 Wregardsd
If the line after the current line is empty when you call CONCAT, the command

works like the expansion of the current line by the characters `string'. (With the command SSPLIT, you can create an empty line if you wish to use the effect described above to expand a record.)


next previous up contents index
Next: COPY Previous: COMPRESS Up: The Commands in Detail