Class DsnRename


  • public class DsnRename
    extends Object
    Provides rename dataset and member functionality
    Version:
    2.0
    Author:
    Frank Giordano
    • Constructor Detail

      • DsnRename

        public DsnRename​(ZosConnection connection)
        DsnRename Constructor
        Parameters:
        connection - connection information, see ZOSConnection object
      • DsnRename

        public DsnRename​(ZosConnection connection,
                         ZoweRequest request)
                  throws Exception
        Alternative DsnRename constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.
        Parameters:
        connection - connection information, see ZOSConnection object
        request - any compatible ZoweRequest Interface object
        Throws:
        Exception - processing error
    • Method Detail

      • dataSetName

        public Response dataSetName​(String source,
                                    String destination)
                             throws Exception
        Change the existing dataset name (source) to new dataset name (destination)
        Parameters:
        source - existing dataset name
        destination - new dataset name
        Returns:
        Response object
        Throws:
        Exception - processing error
      • memberName

        public Response memberName​(String dsName,
                                   String source,
                                   String destination)
                            throws Exception
        Change the existing member name (source) to new member name (destination) within a partition dataset
        Parameters:
        dsName - from dataset name
        source - existing member name
        destination - new member name
        Returns:
        Response object
        Throws:
        Exception - processing error