Previous Topic: FIELD StatementNext Topic: SEQUENCE FIELD statement


USAGE clause

The USAGE clause defines the data type of the named field. It is used at the end of each of the five formats of the FIELD statement and is not repeated for the individual formats of the FIELD statement.

Syntax

>─┬──────────────────────────────────┬──────────────────────────────────────><
  └─ USAGE is ──┬── DISplay ◄──┬─ . ─┘
                ├── BINary ────┤
                └── PACKed ────┘

Parameters

USAGE is

Specifies the data type of the named field. To determine the appropriate option, note the FIELD statement in the DBD.

DISplay

Specify if the FIELD statement in the DBD specifies TYPE=C. DISPLAY is the default value.

BINary

Specify if the FIELD statement in the DBD specifies TYPE=F, TYPE=H, or TYPE=X.

PACKed

Specify if the FIELD statement in the DBD specifies TYPE=P.