DSM/Tape Catalog Operator Interface (MEDIACOM) Manual

MEDIACOM Commands
DSM/Tape Catalog Operator Interface (MEDIACOM) Manual429828-010
2-7
Continuing a Command Line
Continuing a Command Line
When an ampersand (&) appears at the end of a MEDIACOM command, it signals that
a continuation of that line follows on the next physical line. MEDIACOM displays three
greater-than characters (>>>) at the beginning of each continued line.
Individual keywords, strings, and other values can be broken across lines. They need
not be continued on a single command line. Spaces at the beginning of a continuation
line are significant because they are part of the command line as a whole.
A single command line, including continuations, cannot exceed 2048 characters. When
listing many tape files, tape names, or disk file names, this can be a consideration.
Examples
These examples of the same command illustrate two approaches to dividing the
command over multiple lines:
MC> ADD POOL TEST_TAPES,&
>>> VOLCAT MASTER_TAPE_CATALOG,&
>>> DENSITY 1600,&
>>> LABELS ANSI,&
>>> TYPE OPEN
MC> ADD POOL TEST_TAPES, VOLCAT MASTER_TAPE_CATALOG,&
>>> DENSITY 1600, LABELS ANSI, TYPE OPEN
Comment Characters
Comments are allowed in command files and input files. Text preceded by two hyphens
is interpreted by MEDIACOM as nonexecutable comment text. For example, an input
file named SREPORT to be invoked as a run option of a MEDIACOM session might
contain this comment and command text:
-- SCRATCH REPORT
-- SHOW ALL SCRATCH TAPES IN POOLS THAT BEGIN WITH OP
INFO TAPEVOLUME *, POOL OP*, STATUS SCRATCH, OUT MYRPT
To invoke the input file:
MEDIACOM /IN SREPORT/
Example Conventions
Most command examples continue on multiple lines for easier reading. For example:
MC> ADD POOL TEST_TAPES,&
>>> VOLCAT MASTER_TAPE_CATALOG,&
>>> DENSITY 1600,&
>>> LABELS ANSI,&
>>> TYPE OPEN