To copy a z/OS UNIX file
into an MVS™ data set using data
definition names (ddname) instead of a data set name or path name,
use the OCOPY command.
- If the file and data set are not yet allocated, allocate them
and specify ddnames, using either the TSO/E ALLOCATE command or the
DD statement for JCL.
The ALLOCATE command has these keywords
for allocating a
z/OS UNIX file:
PATH
PATHDISP
PATHMODE
PATHOPTS
They are explained in
z/OS TSO/E Command Reference.
- Enter the OCOPY command, making sure that the ddnames used match
the ddnames that were specified when the data set and file were allocated.
- You can use the CONVERT option for single-byte data, but not for
double-byte data. See Double-byte data for
information on code page conversion for double-byte data.
- After the copy is completed, you can delete the file using the rm shell
command.