Key

The Key built-in extract file sort order method specifies the sort order for the Sort built-in extract file method.

When called as a parameter for the Sort method, it specifies the initial extract file attribute to sort on.

It can also be called repeatedly to specify additional extract file attributes to sort on. The composite sort order is based on the order that the extract file attributes are specified.

The sort order is based on the standard character sequence for the host platform, as for profiles. Refer to Sort Order for more information.

Refer to Sort for more information and examples of use.

Restrictions

The following restrictions apply to sort attributes:

For MCP-basedSystems, you can set the sort memory size on the Environmental Options screen. Refer to the COBOL documentation for more information.

The sorting order is based on the standard character sequence, as for Profiles. For MCP-based systems, when National items are sorted, the sorting order is based on the CCsversion specified for the System.

Syntax

<<extract file sort order>>::Key(
      key : qualifier,
order : stringExpression) : Boolean

Owner

Any extract file sort order.

Parameters