4.20 SIZEOF

Use @SIZEOF in column mapping to help remove hard coded column lengths. This can be very helpful in conjunction with @GETTLFTOKEN.

Syntax

@SIZEOF (col, [SOURCE | TARGET])
col

Name of the column to return the length of.

SOURCE returns the length of the source column.

TARGET returns the length of the target column.

Default without SOURCE or TARGET is TARGET.

Example

This example returns the length of the target column require for GETTLFTOKEN.

TKNQZ = @GETTLFTOKEN ("QZ", @SIZEOF (TKNQZ ) - 6),

This would simplify the current mapping of having to provide the differing length for each mapped token.