Drop
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
Default
Display in the Command Console any action performed.
Parameters
DROP requires the "file-ref" parameter, which accepts wildcard characters (see the file-ref discussion for more information).
Rather than displaying messages on the screen, the optional ">file-ref" parameter sends messages that occur during the DROP procedure to a file. "PRINT" sends screen messages to a printer.
Three optional parameters, when separated from the rest of the command with a dash, can follow the DROP command:
- "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 <CR> for next screen.)
- "V" |requires the operator to Verify each action before Business Rules performs it.