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


Copying an MVS data set into another MVS data set

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

You can use the TSO/E OCOPY command to copy an MVS™ data set into another data set. It has a CONVERT option that lets you convert between these code pages:
  • IBM-037 and IBM-1047
  • IBM-037 and ISO8859-1
  • Code pages in a user-defined conversion table
With the TSO/E OCOPY command, you can copy:
  • A sequential data set to a sequential data set
  • A sequential data set to a partitioned data set or PDSE member
  • A partitioned data set or PDSE member to a partitioned data set or PDSE member
  • A partitioned data set or PDSE member to a sequential data set
You can enter the command:
  • In TSO/E, in the shell, or in ISPF. See Entering a TSO/E command for information about entering TSO/E commands in TSO/E, the shell, and ISPF.
  • In batch, using a Terminal Monitor Program (TMP) job.
The OCOPY command uses ddnames instead of data set names:
OCOPY INDD(ddname1) OUTDD(ddname2)
      {TEXT | BINARY}
      {CONVERT(convert_table_name | YES | NO)}
      {TO1047 | FROM1047}
You do not need the PATHOPTS operand when copying from one data set to another.

There are two ways to specify ddnames, using either the ALLOCATE command or JCL for a batch job.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014