Skip to content

DROP ALL

Drop All ADDRed Filenames from File Table

This directive removes all file-names from the File Control Table that were placed there with an ADDR directive, and releases the memory allocated to public programs that were ADDRed.

DROP ALL [,ERR=line-ref|,ERC=error-code]
line-ref
is the program line number or label to branch to if this directive produces an error.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

The ALL modifier is generally available starting with release level 8.1, and causes all public programs to be removed from the File Control Table.

If an attempt is made to DROP ALL and there are no file-names in the File Control Table from ADD or ADDR directives, an ERR=12 results.

01000 DROP ALL, ERR=01001

drops all file-names from the File Control Table based on previous ADDR directives, and continues operation with the next logical Thoroughbred Basic statement, ignoring any ERR=12 that results if there were no file-names to DROP.

ADD, ADDR, and DROP directives

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF