Pathway/iTS SCUP Reference Manual
Table Of Contents
SCUP Commands
HP NonStop Pathway/iTS SCUP Reference Manual—520269-002
2-26
COPY Command
program name in the object file. The old and new program name and version numbers
are displayed after the copy operation is complete.
If two or more versions of the same program are specified in the COPY command, the
last program specified becomes the latest version in the destination object file. This
gives you control over the priority assigned to program versions when copying from
one file to another.
If the * or + form of version number is specified, the programs receive new version
numbers, but retain the same version priority in the destination object file. In effect, the
latest version in the source file is copied last and remains the latest version in the
destination file for this form of version specification.
If the destination object file specified in the COPY command does not exist, SCUP
creates the file before executing the COPY command. If the destination file does exist,
SCUP adds the named program to the programs already present in the specified
object file (in the same manner as the SCREEN COBOL compiler).
When executing a COPY command, SCUP allows shared access to the SCREEN
COBOL object files. The COPY command does not disrupt concurrent users of the
object files, even if the name of the program being added is the same as one already
present. This allows additions to be made to object files that are in use by the TCP.
The object file-name expansion uses the default settings specified by the CMDSYS
and CMDVOL commands.
The following example copies two versions of a program called TEST, retaining the
version priority of the programs:
COPY file1(test(3),test(5)), file2
$MKT.OLDSV.FILE1 COPY TO $MKT.OLDSV.FILE2
EXTENTS: DIR(00016,00032) COD(00032,00064) SYM(00032,000128)
TEST (3) TEST (1)
TEST (5) TEST (2)
The following example copies two versions of program TEST, reversing the version
priority of the programs:
COPY file1(test(5),test(3)), file2
$MKT.OLDSV.FILE1 COPY TO $MKT.OLDSV.FILE2
EXTENTS: DIR(00016,00032) COD(00032,00064) SYM(00032,000128)
TEST (5) TEST (1)
TEST (3) TEST (2)
The following example copies all versions of program TEST, retaining the version
priority of the programs:
COPY file1(test(*)), file2:
$MKT.OLDSV.FILE1 COPY TO $MKT.OLDSV.FILE2
EXTENTS: DIR(00016,00032) COD(00032,00064) SYM(00032,000128)
TEST (3) TEST (1)