z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


OCOPY

z/OS UNIX System Services User's Guide
SA23-2279-00

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.

  1. 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.
  2. Enter the OCOPY command, making sure that the ddnames used match the ddnames that were specified when the data set and file were allocated.
  3. 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.
  4. After the copy is completed, you can delete the file using the rm shell command.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014