public abstract class AbstractExec extends java.lang.Object implements IExecute
Constructor and Description |
---|
AbstractExec()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAllDDStatements(java.util.List<DDStatement> dds)
Concatenates a list of DD statements to the list of DD statements for this command
|
void |
addDDStatement(DDStatement dd)
Add a DD statement that will be allocated prior to executing the program and freed once program execution has completed.
|
void |
addDDStatement(java.lang.String ddName,
java.lang.String dsn,
java.lang.String options,
boolean pass)
Creates and adds a DD statement that will be allocated prior to executing the program and freed once program execution has completed.
|
void |
addDDStatment(java.lang.String ddName,
java.lang.String dsn,
java.lang.String options,
boolean pass)
Deprecated.
|
AbstractExec |
dd(DDStatement dd)
Add a DD statement that will be allocated prior to executing the program and freed once program execution has completed.
|
int |
execute()
Executes the command
|
java.util.List<DDStatement> |
getDDStatements()
Retrieves the list of DD statements for this command
|
java.lang.String |
getFile()
Returns the relative path of the file that this
command is processing.
|
void |
setFile(java.lang.String file)
Set the file that this command is processing.
|
public final int execute() throws BuildException
execute
in interface IExecute
BuildException
- if an error occurs during the executionpublic void addDDStatement(DDStatement dd) throws BuildException
dd
- The DD statement to add.BuildException
- an exception occurredDDStatement
public void addDDStatment(java.lang.String ddName, java.lang.String dsn, java.lang.String options, boolean pass) throws BuildException
addDDStatement(String, String, String, boolean)
ddName
- The name of the DD statement to add. Required.dsn
- The dataset name of the DD statement to add. Optional if the DD statement is for a temporary dataset.options
- BPXWDYN allocation options. Required. See BPXWDYN: Dynamic Allocationpass
- True if the DD is to be passed to another MVSExec statement so is not freed at. Optional, default is false.BuildException
- an exception occurredDDStatement
public void addDDStatement(java.lang.String ddName, java.lang.String dsn, java.lang.String options, boolean pass) throws BuildException
ddName
- The name of the DD statement to add. Required.dsn
- The dataset name of the DD statement to add. Optional if the DD statement is for a temporary dataset.options
- BPXWDYN allocation options. Required. See BPXWDYN: Dynamic Allocationpass
- True if the DD is to be passed to another MVSExec statement so is not freed at. Optional, default is false.BuildException
- an exception occurredDDStatement
public void addAllDDStatements(java.util.List<DDStatement> dds) throws BuildException
dds
- List of DD statementsBuildException
- an exception occurredDDStatement
public java.util.List<DDStatement> getDDStatements()
DDStatement
public void setFile(java.lang.String file)
file
- the relative path of the file.public java.lang.String getFile()
public AbstractExec dd(DDStatement dd) throws BuildException
dd
- The DD statement to add.BuildException
- an exception occurredDDStatement
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.