Previous Topic: COPY CommandNext Topic: Copy Line Command


Operand Definitions

Operand

Description

PROGRAM name

One‑ to eight‑character name of the program definition from which data is copied. The component of the program definition from which data is copied corresponds to the component being edited in the current program. For example, if you issue the COPY command while the procedure of the current program is being edited, the data is copied from the procedure of the program definition named in the COPY command. This applies to the working data and parameter data components too.

VERSION

Version of the program definition from which data is copied.

nnn One‑ to eight‑character number CA Ideal assigned when this version of the program was created.

PROD Production‑status version.

LAST Latest version of the program created; for example, the version with the highest version number.

SYS id

System where the program resides. This is required when copying from a different system.

MEMBER name

One‑ to eight‑character name of the member from which data is copied.

USER name
USER id

The 1‑ to 15‑character user name or the one‑ to three‑character ID of the user who owns the member. This clause is required if the member does not belong to the current user.

num1
TOP

Line or the start of the range of lines to copy.

num1 Sequence number of the line to copy or, if specified with num2 or BOTTOM, the first line of a range of lines to copy.

TOP Copies the first line in the program definition or member. If specified with num2 or BOTTOM, it indicates that the first line of a range of lines to copy is the top line.

Note: If only one value is specified, it is the destination of the lines to copy. If two values are specified, they are the line to copy and the destination line.

num2
BOTTOM

End of the range of lines to copy.

num2 Sequence number of the line marking the end of the range to copy.

BOTTOM Indicates that the last line in the program or member is the end of the range of lines to copy.

Note: If only one value is specified, it is the destination of the lines to copy. If two values are specified, they are the line to copy and the destination line.

num3
TOP

BOTTOM Destination of the lines to copy. The destination is always in the component being edited in the current program or the current member.

num3 Sequence number of the line in the component of the current program definition or the current member after which the line or lines being copied are inserted.

TOP Indicates that the destination of the line or lines to copy is the top of the component of the current program definition or the current member.

BOTTOM Indicates that the destination of the line or lines to copy is the bottom of the current program definition or member.

Note: If only one value is specified, it is the destination of the lines to copy. If two values are specified, they are the line to copy and the destination line.