Swap Commands
This page describes the SWAP commands that can be issued at the DCL level.

It provides a complete command reference "manual" for the experienced SWAP user.


SWAP
The SWAP command activates SWAP.

Format:

    $ SWAP file_spec search_string replacement_string

Command Syntax
SWAP commands look and act like DCL commands.  The program was designed to conform to normal OpenVMS DCL command syntax.

SWAP commands have the format:

    $ SWAP[/qualifier...] file_spec search_string replacement_string

SWAP is the name of the command and /qualifier is the name of a command qualifier.  There are three parameters.  Lowercase and uppercase characters in command and qualifier names are equivalent.  As in DCL, '/' serves as a delimiter and command lines can be continued on to another line by terminating the line with a hyphen, typing <RETURN> and typing more of the command on the next line.


Abbreviating Commands
As with DCL, all SWAP commands and switches can be truncated to a unique string (eg "SWAP" can be truncated to "SW" and "CONFIRM" can be truncated to "CON").  This provides compact command entry for experienced users.  In command procedures, it is best to avoid abbreviating command names and qualifiers.  Please refer to the OpenVMS DCL manual for more details.

The following sections describe the purpose of each SWAP command and lists the qualifiers that are valid to use with it.  Then it lists all the qualifiers in alphabetical order and describes each qualifier in detail.


Editing Command Lines
As with DCL, SWAP commands and qualifiers can be edited using terminal keys. Command_line editing is most useful for modifying long command lines.


Help
The HELP command provides access to SWAP's on_line HELP text.

Format:

    $ HELP SWAP

SWAP's HELP text is stored in the system's HELP library along with the OpenVMS help text.