CONCAT

Function

Concatenates variables, columns, or literals with string variables.

Syntax

CONCAT {src_any_lit|_var|_col} WITH dst_txt_var[[:$]edit_mask]

Arguments

src_any_lit|_var|_col

Source field to concatenate with dst_txt_var .

dst_txt_var

Result after execution.

edit_mask

Optional edit mask.

Description

The contents of the source field are appended to the end of the destination field.

CONCAT can optionally edit the source field before appending it. To dynamically change an edit mask, place it in a string variable and reference the variable name preceded by a colon (:). (See Edit Masks.)

The source can be a date variable or column. If an edit mask is not specified, the date is converted to a string according to the following rules:

Examples

concat &zip_plus_4 with $zip '-xxxx'  ! Edit zip plus 4.
concat &descrip with $rec :$desc_edit ! Edit mask in variable.
concat $date1 with $string            ! Concatenate a date.

See Also