SEGMENT_RECORD_PREFIX

Use the SEGMENT_RECORD_PREFIX keyword to specify the contents of fields within the prefix portion of the segment records written to an extract file.

Note

You must also specify EXTRACT_FORMAT=USER when the SEGMENT_RECORD_PREFIX keyword is specified.

Use

SEGMENT_RECORD_PREFIX is an optional keyword for the EXTRACT command.

Related keywords

  • EXTRACT_FORMAT

  • SEGMENT_RECORD_SUFFIX

Syntax

 SEGMENT_RECORD_PREFIX=(expression [,...][,VL=YES/NO])

Parameters

The parameters consist of a list of one or moreexpressions, each which identifies a value to be placed in the prefix portion of segment records. See Expression syntax for details.

The value or values resulting from each expression in the parameter list are placed in the output area in the order specified. Unless otherwise directed by use of an explicit conversion operator, the format, size and precision of the value(s) is derived from the operands and operators used in the expression. See Expression syntax in this book for details.

The entire list of values resulting from the expressions can be optionally prefixed with a 2-byte length indicator. Specify VL=YES as a subparameter on the SEGMENT_RECORD_PREFIX keyword to request a length prefix; specify VL=NO to suppress the length prefix.

Default

The default value for the VL parameter is NO: VL=NO.

Alias

PREFIX

Was this page helpful? Yes No Submitting... Thank you

Comments