Drop

From BR Wiki
Jump to navigation Jump to search

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:

  1. "A" causes only files with the archive bit on to be dropped on DOS versions. Linux versions ignore this option.
  2. "N" prevents a log of performed actions from displaying on the screen.
  3. "P" causes scrolling to pause when a full screen of information has been displayed. Press <ENTER> for next screen.
  4. "V" requires the operator to Verify each action before Business Rules performs it.