Member copy and move
 
You can copy between datasets like this:
Cmd Member   Text                     Description   Show
CO  FRED     USERID.QUAL2.QUAL3.QUAL4
TO  BILL     OTHERID.SOME.DATA.OR.OTHER
The commands shown above will Copy the member FRED To the member BILL on the target dataset. If you want to copy or move without changing the member name, you can leave the member name blank on the TO and OV lines. The command combinations that can be used are as follows (choose one from the left column and one from the right):

co copy member to target member name. If the member already exists, it is not overwritten
mo move member ov target member name. Any existing member is overwritten

Note that the same dataset can appear as many times as you like on a DDF list. If you use the same dataset name with CO/MO and TO/OV:

  • Using the same member and same dataset is not an error, but also is not sensible!
  • A MO/TO operation using the same dataset names and different member is equivalent to renaming the member; MO/OV will over-write any existing member.
  • CO/TO or CO/OV creates a new copy, with or without over-writing the target, respectively.