public class DDStatement
extends java.lang.Object
DD statements are allocated before the MVSExec command is executed and then freed after the
command is completed unless the pass flag has been set to true
. MVSExec statements
which contain passed DD statements should be part of a MVSJob.
Constructor and Description |
---|
DDStatement()
Constructs a empty DD Statement
|
DDStatement(DDStatement dd)
Copy constructor for DD Statement
|
Modifier and Type | Method and Description |
---|---|
void |
addConcatenation(DDStatement dd)
Concatenates a DD statement to this DD statement.
|
void |
addConcatenation(java.lang.String dsn,
java.lang.String options)
Creates a new DD statement and concatenates it to this DD statement.
|
DDStatement |
concatenate(DDStatement statement)
Concatenates a DD statement to this DD statement.
|
DDStatement |
ddref(java.lang.String ddref) |
DDStatement |
deployType(java.lang.String deployType)
Set the deploy type for this DD
|
DDStatement |
dsn(java.lang.String dsn)
Sets the dataset name for this DD statement.
|
java.util.List<DDStatement> |
getConcatenations()
Retrieves the list of DD statements that are concatenated to this DD statement
|
java.lang.String |
getDDref()
Get the DD reference for this DD statement
|
java.lang.String |
getDeployType()
get the deploy type for this DD
|
java.lang.String |
getDsn()
Retrieves the dataset name for this DD statement.
|
java.lang.String |
getInstreamData()
Retrieve the instream data of this DD.
|
java.lang.String |
getName()
Retrieves the DD name of this DD statement.
|
java.lang.String |
getOptions()
Retrieves the BPXWDYN allocation options for this DD statement.
|
java.lang.String |
getPath()
Retrieves the path for this DD statement.
|
DDStatement |
instreamData(java.lang.String instreamData)
Set the instream data for this DD
|
boolean |
isOutput()
Check if this DD is an output DD.
|
boolean |
isPass()
Tests the
pass flag for this DD statement. |
boolean |
isReport()
Check if this DD should be reported in the build report
|
DDStatement |
name(java.lang.String name)
Sets the DD name for this DD statement.
|
DDStatement |
options(java.lang.String options)
Sets the BPXWDYN allocation options for this DD statement.
|
DDStatement |
output(boolean output)
Set whether this DD as an output DD
|
DDStatement |
pass(boolean pass)
Sets the
pass flag for this DD statement. |
DDStatement |
path(java.lang.String path)
Sets the path for this DD statement.
|
DDStatement |
report(boolean report)
Set whether this DD should be reported in the build report.
|
void |
setDDref(java.lang.String ddref) |
void |
setDeployType(java.lang.String deployType)
Set the deploy type for this DD
|
void |
setDsn(java.lang.String dsn)
Sets the dataset name for this DD statement.
|
void |
setInstreamData(java.lang.String instreamData)
Set the instream data for this DD
|
void |
setName(java.lang.String name)
Sets the DD name for this DD statement.
|
void |
setOptions(java.lang.String options)
Sets the BPXWDYN allocation options for this DD statement.
|
void |
setOutput(boolean output)
Set whether this DD as an output DD
|
void |
setPass(boolean pass)
Sets the
pass flag for this DD statement. |
void |
setPath(java.lang.String path)
Sets the path for this DD statement.
|
void |
setReport(boolean report)
Set whether this DD should be reported in the build report.
|
public DDStatement()
public DDStatement(DDStatement dd)
dd
- An existing DD statement. The DD statement is not required to have a DD name.public java.util.List<DDStatement> getConcatenations()
public void addConcatenation(DDStatement dd)
dd
- An existing DD statement. The DD statement is not required to have a DD name.public void addConcatenation(java.lang.String dsn, java.lang.String options)
dsn
- Dataset name to allocate. Required for concatenations.options
- BPXWDYN allocation options. See BPXWDYN: Dynamic Allocationpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of this DD statement.public java.lang.String getDsn()
public void setDsn(java.lang.String dsn)
dsn
- The dataset name for this DD statement.public void setPath(java.lang.String path)
path
- The path for this DD statement.public java.lang.String getPath()
public java.lang.String getOptions()
public void setOptions(java.lang.String options)
options
- The BPXWDYN allocation options for this DD statement.public boolean isPass()
pass
flag for this DD statement.
Normally DD statements are freed after an MVSExec command is completed. However if the pass flag is set to true
,
then the DD statement is not freed and can be used by subsequent MVSExec statements. MVSExec statements
which contain passed DD statements should be part of a MVSJob.
public void setPass(boolean pass)
pass
flag for this DD statement.
Normally DD statements are freed after an MVSExec command is completed. However if the pass flag is set to true
,
then the DD statement is not freed and can be used by subsequent MVSExec statements. MVSExec statements
which contain passed DD statements should be part of a MVSJob.
pass
- The value to set the pass flag.public boolean isOutput()
true
if this DD is an output DD; false
otherwise.public void setOutput(boolean output)
output
- true
if this is an output DD; false
otherwise.public boolean isReport()
true
if this DD should be reported in the build report; false
otherwise.public java.lang.String getInstreamData()
public void setInstreamData(java.lang.String instreamData)
instreamData
- the instream datapublic java.lang.String getDeployType()
public void setDeployType(java.lang.String deployType)
deployType
- the value of the deploy typepublic void setReport(boolean report)
report
- true
if this DD should be reported in the build report; false
otherwise.public DDStatement name(java.lang.String name)
name
- The name of this DD statement.public DDStatement dsn(java.lang.String dsn)
dsn
- The dataset name for this DD statement.public DDStatement path(java.lang.String path)
path
- The path for this DD statement.public DDStatement options(java.lang.String options)
options
- The BPXWDYN allocation options for this DD statement.public DDStatement pass(boolean pass)
pass
flag for this DD statement.
Normally DD statements are freed after an MVSExec command is completed. However if the pass flag is set to true
,
then the DD statement is not freed and can be used by subsequent MVSExec statements. MVSExec statements
which contain passed DD statements should be part of a MVSJob.
pass
- The value to set the pass flag.public DDStatement output(boolean output)
output
- true
if this is an output DD; false
otherwise.public DDStatement report(boolean report)
report
- true
if this DD should be reported in the build report; false
otherwise.public DDStatement instreamData(java.lang.String instreamData)
instreamData
- the instream datapublic DDStatement concatenate(DDStatement statement)
statement
- An existing DD statement. The DD statement is not required to have a DD name.public DDStatement deployType(java.lang.String deployType)
deployType
- the value of the deploy typepublic java.lang.String getDDref()
public void setDDref(java.lang.String ddref)
ddref
- referencepublic DDStatement ddref(java.lang.String ddref)
ddref
- reference<IBM Copyright © 2018 IBM Corp. All Rights Reserved.