MPE/iX Commands Reference Manual (32650-90877)
Chapter 4 141
Command List II
Commands CALC thru COPY
Example
If you anticipate a possible error resulting from the command RUN MYPROG, and wish to
override this error and allow the job to continue executing, enter:
!JOB USER.PUBS
!CONTINUE
!RUN MYPROG
!IF JCW <= WARN THEN
! RUN MYPROG2
!ENDIF
!EOJ
Related Information
Commands JOB
Manuals Appendix A, "Predefined Variables in MPE/iX"
COPY
Copies one file to another by creating a new file or by overwriting an existing file.
The COPY command can be used to copy files to and from HFS directories. You cannot use
COPY to copy directories to or from other directories. Users with SM capabilities are able to
copy files to MPE accounts outside of their current logon account.
Syntax
COPY[FROM=]
sourcefile
[{ ;TO= | , | blank}
targetfile
] [ ASK | YES | NO ]
Parameters
sourcefile
The name of the file that is to be copied.
A file with HFS syntax must begin with a dot (.), or a slash (/).
You may not specify system-wide ($ prefix), CM KSAM, or privileged files
as
sourcefile
or
targetfile
.
targetfile
The name of the file to which
sourcefile
is to be copied. If
targetfile
is
omitted, the source file is copied to
sourcefile
in the user's current
working directory (CWD). You may qualify
targetfile
with both file and
group name, or specify only the destination
group
or specify only the
destination directory. To specifiy a group name as the target use
.groupname
. If only
group
is specified, COPY copies the source file to a file
named
sourcefile targetfile
. Likewise if only a directory is specified,
COPY copies the source file to a file named
targetfile/sourcefile
.
NOTE
Since
.groupname
can be specified as the
targetfile
, and HFS file names
can also start with a dot (.), this could lead to confusion as to whether an MPE
group or HFS file name is desired for the
targetfile
. If the
targetfile
is
an HFS filename starting with a dot (.), then the
targetfile
must be
preceded with a dot and slash (./). For example, to represent a
targetfile