z/OS DFSMS Using Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Copying a PDSE or Member to Another Data Set

z/OS DFSMS Using Data Sets
SC23-6855-00

In a TSO/E session, you can use the OCOPY command to copy:
  • A PDSE or PDS member to a UNIX file
  • A UNIX file to a PDSE or PDS member
  • A PDSE or PDS member to another member
  • A PDSE or PDS member to a sequential data set
  • A sequential data set to a PDSE or PDS member

Related reading: For more information, see z/OS UNIX System Services Command Reference.

You can use IEBCOPY to copy between PDSEs and PDS data sets. When using IEBCOPY to copy data members between PDSEs and PDS data sets, the most efficient way to do so (where a conversion is required), is to use a two-step process:

  1. Use IEBCOPY UNLOAD to copy selected members or the entire PDS or PDSE to a sequential file.
  2. Use IEBCOPY LOAD to copy these members or the data set into a PDSE or PDS.

The performance is significantly better than a direct one-step copy operation between unlike data set formats. Please note, this recommendation applies to PDSEs with data members and not PDSE libraries that contain program objects, which cannot be converted using an IEBCOPY load process.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014