Package zowe.client.sdk.zosfiles
Class ZosDsnCopy
- java.lang.Object
-
- zowe.client.sdk.zosfiles.ZosDsnCopy
-
public class ZosDsnCopy extends Object
Provides copy dataset and dataset member functionality- Version:
- 1.0
- Author:
- Leonid Baranov
-
-
Constructor Summary
Constructors Constructor Description ZosDsnCopy(ZOSConnection connection)ZosDsnCopy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responsecopy(String fromDataSetName, String toDataSetName, boolean replace, boolean copyAllMembers)This copy method allows the following copy operations:Responsecopy(CopyParams params)Copy dataset or dataset member
-
-
-
Constructor Detail
-
ZosDsnCopy
public ZosDsnCopy(ZOSConnection connection)
ZosDsnCopy constructor- Parameters:
connection- is a connection, see ZOSConnection object
-
-
Method Detail
-
copy
public Response copy(CopyParams params) throws Exception
Copy dataset or dataset member- Parameters:
params- contains copy dataset parameters- Returns:
- http response object
- Throws:
Exception- error processing copy request
-
copy
public Response copy(String fromDataSetName, String toDataSetName, boolean replace, boolean copyAllMembers) throws Exception
This copy method allows the following copy operations:- sequential dataset to sequential dataset - sequential dataset to partition dataset member - partition dataset member to partition dataset member - partition dataset member to partition dataset non-existing member - partition dataset member to sequential dataset
If copyAllMembers parameter value sent as true it will perform a copy of all members in source partition dataset to another partition dataset.
- Parameters:
fromDataSetName- is a name of source dataset (e.g. 'SOURCE.DATASET' or 'SOURCE.DATASET(MEMBER)')toDataSetName- is a name of target dataset (e.g. 'TARGET.DATASET' or 'TARGET.DATASET(MEMBER)')replace- if true members in the target dataset are replacedcopyAllMembers- if true copy all members in source partition dataset specified- Returns:
- http response object
- Throws:
Exception- error processing copy request
-
-