ERASE

From CometWiki

Jump to: navigation, search

ERASE

Syntax:
ERASE file-name[,directory-name]
Placement:
Place the ERASE statement either before or after the REPORT command in your report file.
Place it before any PRINTER or LOG command and after the BREAK, PRINT, and TOTAL commands.

CAUTION:
The Reporter does not check what kind of file is being erased.

Discussion:
The ERASE command provides a way to erase temporary files you created using a PRINTER or LOG command.
You enter the actual file-name of the file to erase and an optional three-character directory-name for the file.
If you do not specify a directory, The Reporter searches all the accessed directories in accessed order and erases the first file it finds with the file-name you specified.
If you do not use the ERASE command and you use the file with another PRINTER or LOG command, the report or log will be appended to the existing file.

Personal tools