COPY [ EDIT/3000:Reference Manual ] MPE/iX 5.0 Documentation
EDIT/3000:Reference Manual
COPY
3-19a. COPY COMMAND
3-19b. Purpose.
The COPY command copies text from one location into another in the WORK
file.
3-19c. Form.
The form of the COPY command is
[{BY} ]
CO[PY][Q]range {TO} {linenumber}[{, } increment]
{, }
3-19d. Description.
The COPY command copies the lines specified by range to the linenumber
indicated. The new line numbers are incremented by the value specified
in the command. If increment is not included, it defaults to the SET
DELTA = increment in effect. If necessary, in order to fit the lines to
be copied into the space available between existing lines, EDIT/3000 will
adjust the increment in effect until the minimum increment of .001 is
reached. If the lines to be copied will not fit into the available
space, the error message "*18* INSUFFICIENT LINE NUMBERS OR WORK
SPACE--COMMAND NOT PERFORMED" will be displayed and no text will be
copied.
During the copy, the line numbers of the lines being copied from and
copied to are displayed thus:
5-->50
where 5 represents the line number from which data is copied and 50
represents the line number to which the data is copied. If this output
is not desired, it can be inhibited by adding Q to the COPY command.
In an interactive session, a COPY command may be terminated by entering
CONTROL Y.
3-19e. Limitations.
EDIT/3000 will reject a COPY command and print an error message if:
1. A linenumber specified in the TO portion of a COPY command already
exists in the WORK file.
2. The SET DELTA = increment in effect cannot be adjusted by
EDIT/3000 to allow as many line numbers as there are lines to be
copied.
3. A BY increment (or, increment) parameter is specified that does
not allow as many line numbers as there are lines to be copied.
3-19f. Examples.
Several variations of the COPY command are shown in the following
examples. The location of the pointer is illustrated at the conclusion
of each COPY command.
* COPY ALL TO linenumber BY increment
The following example uses the command COPY ALL TO 2.1 BY .01 to copy all
lines to 2.1, 2.11, 2.12, 2.13, 2.14, 2.15, and 2.16. The pointer is
located at the first position of the last line copied (2.16).
/L ALL
1 1/2. WHAT IS EDIT/3000?
2
3 EDIT/3000 IS A SUBSYSTEM OF THE HP 3000
4 MULTIPROGRAMMING EXECUTIVE OPERATING SYSTEM
5 (MPE/3000) THAT IS USED TO CREATE AND
6 MANIPULATE ASCII FILES.
7
/COPY ALL TO 2.1 BY .01
1 => 2.1
2 => 2.11
3 => 2.12
4 => 2.13
5 => 2.14
6 => 2.15
7 => 2.16
/FIND*
2.16
^ (1 )
/L ALL
1 1/2. WHAT IS EDIT/3000?
2
2.1 1/2. WHAT IS EDIT/3000?
2.11
2.12 EDIT/3000 IS A SUBSYSTEM OF THE HP 3000
2.13 MULTIPROGRAMMING EXECUTIVE OPERATING SYSTEM
2.14 (MPE/3000) THAT IS USED TO CREATE AND
2.15 MANIPULATE ASCII FILES.
2.16
3 EDIT/3000 IS A SUBSYSTEM OF THE HP 3000
4 MULTIPROGRAMMING EXECUTIVE OPERATING SYSTEM
5 (MPE/3000) THAT IS USED TO CREATE AND
6 MANIPULATE ASCII FILES.
7
/
* COPYQ range, linenumber
The next example copies lines 2, 2.1, 2.11, 2.12, and 2.13 to a location
starting at line 6.01.
/COPYQ 2/2.13, 6.01
/ L ALL
2
2.1 1/2. WHAT IS EDIT/3000?
2.11
2.12 EDIT/3000 IS A SUBSYSTEM OF THE HP 3000
2.13 MULTIPROGRAMMING EXECUTIVE OPERATING SYSTEM
2.14 (MPE/3000) THAT IS USED TO CREATE AND
2.15 MANIPULATE ASCII FILES.
2.16
3 EDIT/3000 IS A SUBSYSTEM OF THE HP 3000
4 MULTIPROGRAMMING EXECUTIVE OPERATING SYSTEM
5 (MPE/3000) THAT IS USED TO CREATE AND
6 MANIPULATE ASCII FILES.
6.01
6.02 1/2. WHAT IS EDIT/3000?
6.03
6.04 EDIT/3000 IS A SUBSYSTEM OF THE HP 3000
6.05 MULTIPROGRAMMING EXECUTIVE OPERATING SYSTEM
7
/
MPE/iX 5.0 Documentation