Previous Topic: @CFDE-Create Field Definition Entry MacroNext Topic: @DDSN-Dynamic Data Set Allocation Macro


@CFDEDFT-Generate Default Value for Database Record Field

The @CFDEDFT macro generates a default value or series of values for a database record field defined through a Field Definition Entry. Single valued fields have a single default value. This value can be generated inline in the FDE or in a remote area. Multivalued field default lists must be generated remotely. The syntax for the @CFDEDFT macro is:

@CFDEDFT OPS,TYPE=,FLAGS=,MULTVAL=NO,MAXLEN=
OPS

Specifies one or more values appropriate for the field as defined by TYPE. Multiple values are permitted only when MULTVAL=YES and only if the list is generated out‑of‑line with respect to the FDE. If omitted, an appropriate 'zero value' is generated.

TYPE

Specifies a standard Field Definition Entry data type specification (for example, binary). This operand is required.

FLAGS

This value is coded on the @CFDE macro defining this field.

MULTVAL

Specifies whether a list of defaults is provided supporting a multivalued FDE. The default is MULTVAL=NO.

MAXLEN

For internal use only. Do not use.