public class CreatePDS extends java.lang.Object implements IExecute, com.ibm.dbb.build.internal.DDProcessConstants
Usage:
CreatePDS createPDSCmd = new CreatePDS(); createPDSCmd.setDataset(HLQ + "LOAD"); createPDSCmd.setOptions("cyl space(1,1) dsorg(PO) recfm(U) blksize(32760) dsntype(library)"); createPDSCmd.create();This class also supports chaining:
new CreatePDS().dataset(HLQ + "LOAD").options("cyl space(1,1) dsorg(PO) recfm(U) blksize(32760) dsntype(library)").create();
Constructor and Description |
---|
CreatePDS()
Construct a command to create a data set
|
CreatePDS(java.lang.String dataset,
java.lang.String options)
Construct a command to create a data set
|
Modifier and Type | Method and Description |
---|---|
void |
create()
Create a data set
|
CreatePDS |
dataset(java.lang.String dataset)
Set the data set to be allocated
|
int |
execute()
Calls the create()
|
java.lang.String |
getDataset()
Retrieve the data set to be allocated
|
java.lang.String |
getOptions()
Retrieve the options to be used to allocate the data set
|
CreatePDS |
options(java.lang.String options)
Set the options to be used to allocate the data set
|
void |
setDataset(java.lang.String dataset)
Set the data set to be allocated
|
void |
setOptions(java.lang.String options)
Set the options to be used to allocate the data set
|
public CreatePDS()
public CreatePDS(java.lang.String dataset, java.lang.String options)
dataset
- the data set to be createdoptions
- the options to allocate the data setpublic void create() throws BuildException
BuildException
- throwing an exceptionpublic int execute() throws BuildException
execute
in interface IExecute
BuildException
- throwing an exceptioncreate()
public java.lang.String getDataset()
public void setDataset(java.lang.String dataset)
dataset
- the data setpublic java.lang.String getOptions()
public void setOptions(java.lang.String options)
options
- the optionspublic CreatePDS dataset(java.lang.String dataset)
dataset
- the data setpublic CreatePDS options(java.lang.String options)
options
- the options<IBM Copyright © 2018 IBM Corp. All Rights Reserved.