Concatenation Operator |

Syntax:

DNTY value_1 | value_2

Return Value:

DNTY [..] multi_occurs_field

Description:

This operator combines two fields into one multi-occurs field

Example:

2|3{multi occurs field 1st occurrence = 2, 2nd occurrence = 3}



This operand may be useful when initialising multi occurrence numbers. You can also use it to create arrays for MAX and MIN to work on. It has lower priority than any operator except IF THEN ELSE.

The | operator does not work with Character fields. Use CONCAT instead.

C programmers who were expecting | to be a bitwise or operator should note that QAB uses # for that operator instead.