C Conversion


Concatenates fields, literals, and the results of a previous operation.

 

SYNTAX

C{;}n{xn}...

 

SYNTAX ELEMENTS

; is optional. It has no function other than to provide compatibility.

n can be one of the following:

  • a field number (FMC)
  • a literal enclosed in single quotes, double quotes, or backslashes
  • an asterisk (*) to specify the last generated value of a previous operation.

x is the character to be inserted between the concatenated elements. If you specify a semicolon (;), no separator will be used. Any non-numeric character except a system delimiters (value, subvalue, field, start buffer, and segment marks) is valid.

 

NOTES

See the descriptions of the function codes (A, F, FS and their variants) for other concatenation methods.

 

INPUT CONVERSION

Input conversion does not invert. The concatenation is applied to the input data.

 

EXAMPLE 1

C1;2

Concatenates the contents of field 1 with field 2, with no intervening separator character.

 

EXAMPLE 2

C1*2

Concatenates the contents of field 1 with an asterisk (*) and then the content of field 2.

 

EXAMPLE 3

C1*"ABC" 2/3

Concatenates the contents of field 1 with an asterisk (*), the string ABC, a space, field 2 a forward slash (/) and then field 3.


jQL