Skip to content

FORMAT DEFAULT

FUNCTION

This directive initializes the value of all data elements and loads any defaults for a selected format or for all formats that have been INCLUDEd. This is a Thoroughbred Basic directive that can be executed from within a script.

SYNTAX

FORMAT DEFAULT format-name[,OPT = "DFONLY"] [,ERC=n]
FORMAT DEFAULT ALL [,OPT = "DFONLY"][,ERC=n]
format-name
is the name of a format defined in the data dictionary.
ALL
specifies that the data elements of all formats currently INCLUDEd will be INITialized and DEFAULTed.
OPT = "DFONLY"
is an optional modifier that bypasses the normal initialization process, and loads any existing defaults only if the data element's value is at an initialized state.
n
is a numeric value set when an error condition is produced.

NOTES

  • For more information on this Thoroughbred Basic directive see the Thoroughbred Basic Language Reference.

SEE ALSO

FORMAT DELETE, FORMAT INCLUDE, FORMAT INIT, SET ERC. Information on formats in the Dictionary-IV Reference Manual. ATR, ERC, FMD, FMT, LET FMD, LET FMT, and information on formats and related directives in the Thoroughbred Basic Language Reference.

From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF