FORMAT Example

The following example shows a FORMAT declaration:

format COMMAFORMAT

% -----------

% prefix; comma between each data item

This example uses the following formatting guidelines

PREFIX STRNUM , RECTYPE , CHANGECODE ,

POSTFIX UID PUID LF

SEPARATOR ,

DECIMALPT .

POSITIVE +VALUE

NEGATIVE -VALUE

TEXT "VALUE"

PADDING SPACE

FLOAT SCIENTIFIC (11) % #.#####E-##

The preceding example uses the following formatting principles:

  • As designated by the entry for PREFIX, each record will start with the structure number, record type, and change code. Each field of the prefix will also be separated by commas.
  • As designated by the entry for POSTFIX, each record will end with the absolute address (unique ID or UID), the parent unique ID (if present), and a line feed (LF).
  • All of the data within the record will be separated by commas as designated by the entry for SEPARATOR.
  • Positive numbers within the data will be formatted, for example, as +000120 (designated by the entry for POSITIVE).
  • Negative numbers within the data will be formatted, for example, as -000120 (designated by the entry for NEGATIVE).
  • The decimal point character is the period ( . ), as designated by the entry for DECIMALPT.
  • All text within the record will be enclosed in quotation marks, as designated by the entry for TEXT.
  • Any unused area at the end of a record will be filled with spaces, as designated by the entry for PADDING.
  • All real numbers within the record will use the scientific format, as designated by the entry for FLOAT.