public class MVSExec extends AbstractExec
Usage:
MVSExec mvsExec = new mvsExec(); mvsExec.setPgm("DFSUNUB0"); mvsExec.setParm("TEST"); mvsExec.addDDStatment("UTPRINT", null, "tracks space(5,5) unit(vio) new", false); mvsExec.addDDStatment("FORMAT", HLQ + ".TFORMAT", "shr", false); mvsExec.addDDStatment("TASKLIB", "JAZZ00.IMS11.SDFSRESL", "shr", false); CopyToHFS copyToHFS = new CopyToHFS(); copyToHFS.setDdName("UTPRINT"); copyToHFS.setFile(new File(WORK_DIR + "/logs/" + MEMBER + ".log")); mvsExec.addCopyToHFS(copyToHFS); int rc = mvsExec.execute();
Constructor and Description |
---|
MVSExec()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addCopyToHFS(CopyToHFS copy)
Adds a CopyToHFS command that will be executed after the program is executed but before the DD statements are freed.
|
MVSExec |
copy(CopyToHFS copy)
Adds a CopyToHFS command that will be executed after the program is executed but before the DD statements are freed.
|
MVSExec |
ddnames(java.lang.String ddnames)
Set the DDs required by the MVS module
|
MVSExec |
file(java.lang.String file)
Set the file that this command is processing.
|
MVSExec |
freePgmAllocatedDDs(boolean freePgmAllocatedDDs)
Set whether the DDs allocated by the program should be freed.
|
boolean |
isFreePgmAllocatedDDs()
Return
true if the DDs allocated by programs should be freed. |
MVSExec |
parm(java.lang.String parm)
Set the parameters to be passed to the MVS module
|
MVSExec |
pgm(java.lang.String pgm)
Set the name of MVS module to execute
|
void |
setDdnames(java.lang.String ddnames)
Set the DDs required by the MVS module
|
void |
setFreePgmAllocatedDDs(boolean freePgmAllocatedDDs)
Set whether the DDs allocated by the program should be freed.
|
void |
setParm(java.lang.String parm)
Set the parameters to be passed to the MVS module
|
void |
setPgm(java.lang.String pgm)
Set the name of MVS module to execute
|
addAllDDStatements, addDDStatement, addDDStatement, addDDStatment, dd, execute, getDDStatements, getFile, setFile
public void addCopyToHFS(CopyToHFS copy)
Useful for copying/storing compile log files from temporary PDS to HFS files.
copy
- CopyToHFS commandpublic void setPgm(java.lang.String pgm)
pgm
- the name of the MVS modulepublic void setParm(java.lang.String parm)
parm
- the parameterspublic void setDdnames(java.lang.String ddnames)
ddnames
- the DD namespublic MVSExec pgm(java.lang.String pgm)
pgm
- the name of the MVS modulepublic MVSExec parm(java.lang.String parm)
parm
- the parameterspublic MVSExec ddnames(java.lang.String ddnames)
ddnames
- the DD namespublic MVSExec copy(CopyToHFS copy)
Useful for copying/storing compile log files from temporary PDS to HFS files.
copy
- CopyToHFS commandpublic MVSExec file(java.lang.String file)
file
- the relative path of the file.public boolean isFreePgmAllocatedDDs()
true
if the DDs allocated by programs should be freed.
Default value is false
true
if the DDs allocated by programs should be freedpublic void setFreePgmAllocatedDDs(boolean freePgmAllocatedDDs)
true
so that these DDs are freed after the compiler has completed.freePgmAllocatedDDs
- true
or false
public MVSExec freePgmAllocatedDDs(boolean freePgmAllocatedDDs)
true
so that these DDs are freed after the compiler has completed.freePgmAllocatedDDs
- true
or false
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.