Class DsnRename
- java.lang.Object
-
- zowe.client.sdk.zosfiles.dsn.methods.DsnRename
-
public class DsnRename extends Object
Provides rename dataset and member functionality- Version:
- 2.0
- Author:
- Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description DsnRename(ZosConnection connection)DsnRename ConstructorDsnRename(ZosConnection connection, ZosmfRequest request)Alternative DsnRename constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsedataSetName(String dataSetName, String newDataSetName)Change the existing dataset name (source) to new dataset name (destination)ResponsememberName(String fromDataSetName, String memberName, String newMemberName)Change the existing member name (source) to new member name (destination) within a partition dataset
-
-
-
Constructor Detail
-
DsnRename
public DsnRename(ZosConnection connection)
DsnRename Constructor- Parameters:
connection- connection information, see ZOSConnection object
-
DsnRename
public DsnRename(ZosConnection connection, ZosmfRequest request)
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 objectrequest- any compatible ZoweRequest Interface object
-
-
Method Detail
-
dataSetName
public Response dataSetName(String dataSetName, String newDataSetName) throws Exception
Change the existing dataset name (source) to new dataset name (destination)- Parameters:
dataSetName- existing dataset namenewDataSetName- new dataset name- Returns:
- Response object
- Throws:
Exception- processing error
-
memberName
public Response memberName(String fromDataSetName, String memberName, String newMemberName) throws Exception
Change the existing member name (source) to new member name (destination) within a partition dataset- Parameters:
fromDataSetName- from dataset namememberName- existing member namenewMemberName- new member name- Returns:
- Response object
- Throws:
Exception- processing error
-
-