Drop: Difference between revisions
(edit) |
(→Syntax) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
==Syntax== | ==Syntax== | ||
DROP <file name> {[>[>] <output file>]|[PRINT]} [-<[[drop option|option]]>][-...] | |||
[[Image: | [[Image:Drop.png]] | ||
==Defaults== | ==Defaults== | ||
Line 19: | Line 20: | ||
==Parameters== | ==Parameters== | ||
DROP requires the "file | DROP requires the "file name" parameter, which accepts wildcard characters (see the file-ref discussion for more information). | ||
Rather than displaying messages on the screen, the optional ">file | Rather than displaying messages on the screen, the optional ">redirected output file" parameter sends messages that occur during the DROP procedure to a file. "PRINT" sends screen messages to a printer. | ||
'''Option''' may be any of the three optional parameters below. These options can follow the DROP command, when separated from the rest of the command with a dash: | |||
#"A" causes only files with the archive bit on to be dropped on DOS versions. Linux versions ignore this option. | #"A" causes only files with the archive bit on to be dropped on DOS versions. Linux versions ignore this option. | ||
#"N" prevents a log of performed actions from displaying on the screen. | #"N" prevents a log of performed actions from displaying on the screen. |
Latest revision as of 16:08, 6 May 2014
The Drop (DR) command empties the contents of one or more files.
Comments and Examples
The Drop command frees all allocated space, leaving only the header record for internal files.
The following example empties the contents of the file AQUAMAR from the directory BLUE and sends screen messages to a printer:
DROP BLUE\AQUAMAR PRINT
Syntax
DROP <file name> {[>[>] <output file>]|[PRINT]} [-<option>][-...]
Defaults
Display in the Command Console any action performed.
Parameters
DROP requires the "file name" parameter, which accepts wildcard characters (see the file-ref discussion for more information).
Rather than displaying messages on the screen, the optional ">redirected output file" parameter sends messages that occur during the DROP procedure to a file. "PRINT" sends screen messages to a printer.
Option may be any of the three optional parameters below. These options can follow the DROP command, when separated from the rest of the command with a dash:
- "A" causes only files with the archive bit on to be dropped on DOS versions. Linux versions ignore this option.
- "N" prevents a log of performed actions from displaying on the screen.
- "P" causes scrolling to pause when a full screen of information has been displayed. Press <ENTER> for next screen.
- "V" requires the operator to Verify each action before Business Rules performs it.