ERASE

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(New page: == 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 ...)
 
Line 1: Line 1:
-
 
== ERASE ==
== ERASE ==
   
   
-
'''Syntax:''' ERASE file-name[,directory-name]
+
'''Syntax:''' <br> ERASE file-name[,directory-name] <br>
-
'''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.  
+
'''Placement:''' <br> Place the ERASE statement either before or after the REPORT command in your report file.<br> 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.  
+
'''CAUTION:''' <br>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.  
+
'''Discussion:''' <br> The ERASE command provides a way to erase temporary files you created using a PRINTER or LOG command. <br>You enter the actual file-name of the file to erase and an optional three-character directory-name for the file.<br> 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. <br>
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.
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.

Latest revision as of 09:15, 6 June 2009

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.