Skip to content

FORMAT INIT

Initialize Data Elements of Included Format

This directive initializes the data elements of the specified format or all formats INCLUDEd by the current program.

FORMAT INIT format-name [,ERR=line-ref|,ERC=error-code]
FORMAT INIT ALL [,ERR=line-ref|,ERC=error-code]
format-name
is the name of a format defined in the data dictionary.
line-ref
is the program line number or label to branch to if an error is produced.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

Alphanumeric fields are initialized with spaces. All numeric fields are initialized with the appropriate numeric zero value.

An attempt to initialize a format that has not been INCLUDEd by the current program results in an ERR=162.

FORMAT INIT #DNFFMT

initializes the values of the format named “DNFFMT”.

FORMAT INIT ALL

initializes the data names of all formats currently INCLUDEd.

FORMAT DEFAULT, FORMAT DELETE, and FORMAT INCLUDE directives

From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF