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.
Syntax
Section titled “Syntax”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.
Remarks
Section titled “Remarks”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.
Examples
Section titled “Examples”FORMAT INIT #DNFFMTinitializes the values of the format named “DNFFMT”.
FORMAT INIT ALLinitializes the data names of all formats currently INCLUDEd.
See also
Section titled “See also”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