OO (Object to Object)

Purpose
Copy an object
Usage notes
Use this function to copy an OAM object within a collection (using a different object name) or to another collection.
Options
You can specify SMS storage class and management class values to be used for storing the object. These might, however, be overridden by your installation defaults.
Related functions
ODL
List OAM objects
OE
Erase an OAM object
OS
Backup objects from an OAM database to a data set
OV
Backup objects from an OAM database to a VSAM data set
OP
Print an object in character or hexadecimal dump format
SO
Copy a data set to an object database
VO
Copy VSAM data to an object database
Figure 1. Syntax

1 OO COLLECTN=collection1 OBJNAME=object1? COLLECTN=collection2? OBJNAME=object2? STORCLAS=storclas? MGMTCLAS=mgmtclas
collection1
Name of the OAM object collection that contains the object. In any mode except batch mode, the user's TSO prefix (normally the user ID) is used as the high-level qualifier for any name that is not entered in quotation marks.
collection2
Name of the OAM object collection to which you are copying the object. In any mode except batch mode, the user's TSO prefix (normally the user ID) is used as the high-level qualifier for any name that is not entered in quotation marks.

By default, the collection name is not changed. (In this case, you must change the object name.)

mgmtclas
Name of an SMS management class.
object1
Current® name of the OAM object. In any mode except batch mode, the user's TSO prefix (normally the user ID) is used as the high-level qualifier for any name that is not entered in quotation marks.
object2
New name of the OAM object. In any mode except batch mode, the user's TSO prefix (normally the user ID) is used as the high-level qualifier for any name that is not entered in quotation marks.

By default, the object name is not changed. (In this case, you must change the collection name.)

storclas
Name of an SMS storage class.
Note: The same keywords are used for input and output. The first occurrences of COLLECTN and OBJNAME refer to the input object; the second occurrences refer to the output object.
/* REXX */
/* Copy object within a collection ...       */
 "FILEMGR $OO  COLLECTN='SYSU.OAM.CLLCT000',",
              "OBJNAME='DTT.ITT.WORK12',",
              "OBJNAME='DTT.ITT.COPY12'"
/* Copy object to other collection...        */
 "FILEMGR $OO  COLLECTN='SYSU.OAM.CLLCT000',",
              "OBJNAME='DTT.ITT.COPY12',",
              "COLLECTN='SYSU.OAM.CLLCT001'"
 return