Class DsnCreate
- java.lang.Object
-
- zowe.client.sdk.zosfiles.dsn.methods.DsnCreate
-
public class DsnCreate extends Object
Provides create dataset and member functionality- Version:
- 2.0
- Author:
- Leonid Baranov, Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description DsnCreate(ZosConnection connection)DsnCreate ConstructorDsnCreate(ZosConnection connection, ZoweRequest request)Alternative DsnCreate constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responsecreate(String dataSetName, CreateParams params)Creates a new dataset with specified parameters
-
-
-
Constructor Detail
-
DsnCreate
public DsnCreate(ZosConnection connection)
DsnCreate Constructor- Parameters:
connection- connection information, see ZOSConnection object
-
DsnCreate
public DsnCreate(ZosConnection connection, ZoweRequest request)
Alternative DsnCreate 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
-
create
public Response create(String dataSetName, CreateParams params) throws Exception
Creates a new dataset with specified parameters- Parameters:
dataSetName- name of a dataset to create (e.g. 'DATASET.LIB')params- create dataset parameters, see CreateParams object- Returns:
- http response object
- Throws:
Exception- error processing request
-
-