Package zosfiles
Class ZosDsn
- java.lang.Object
-
- zosfiles.ZosDsn
-
public class ZosDsn extends Object
-
-
Constructor Summary
Constructors Constructor Description ZosDsn(ZOSConnection connection)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateDsn(String dataSetName, CreateParams params)Creates a new dataset with specified parametersvoiddeleteDsn(String dataSetName)Delete dataset or a dataset membervoidwriteDsn(String dataSetName, String content)Replaces a content of a dataset or a dataset member with a new content The new dataset member will be created if a dataset member is not exists
-
-
-
Constructor Detail
-
ZosDsn
public ZosDsn(ZOSConnection connection)
Constructor- Parameters:
connection- is a connection object
-
-
Method Detail
-
writeDsn
public void writeDsn(String dataSetName, String content)
Replaces a content of a dataset or a dataset member with a new content The new dataset member will be created if a dataset member is not exists- Parameters:
dataSetName- is the name of a dataset or a dataset member (f.e. DATASET.LIB(MEMBER))content- is a new content of the dataset or a dataset member
-
deleteDsn
public void deleteDsn(String dataSetName)
Delete dataset or a dataset member- Parameters:
dataSetName- is the name of a dataset or a dataset member (f.e. 'DATASET.LIB(MEMBER)')
-
createDsn
public void createDsn(String dataSetName, CreateParams params)
Creates a new dataset with specified parameters- Parameters:
dataSetName- is the name of a dataset to create (f.e. 'DATASET.LIB')params- is a dataset parameters
-
-