public class ISPFExec extends AbstractCommandExec
ISPFExec exec = new ISPFExec(); exec.setCommand(command); exec.setConfDir(confDir); exec.setLogFile(logFile); exec.addDDStatement("CMDSCP", "USER1.ISPFGWY.EXEC", "RECFM(F,B) LRECL(80) TRACKS SPACE(1,1) DSORG(PS)", false); exec.addDDStatement("IN", "USER1.SOURCE.FILE", "SHR", false); exec.addDDStatement("OUT", "USER1.TARGET.FILE", "SHR", false); exec.setCommand("OCOPY INDD(IN) OUTDD(OUT) TEXT CONVERT(YES) TO1047"); int rc = exec.execute();
CLOSED_PAREN, DDNAME_KEYWORD, DEFAULT_SH_EXEC, DSNAME_KEYWORD, FREE_COMMAND, INTERACTIVE_GATEWAY, ISPF_RETURN_CODE, LEGACY_GATEWAY, OPEN_PAREN, PATH_KEYWORD, SINGLE_QUOTE, SPACE
Constructor and Description |
---|
ISPFExec()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
ISPFExec |
accountNumber(java.lang.String accountNumber)
Set the account number for the interactive ISPF Gateway
|
ISPFExec |
command(java.lang.String command)
Sets the TSO/ISPF command to be executed
|
ISPFExec |
confDir(java.lang.String confDir)
Set the configuration directory where runIspf.sh could be found
|
ISPFExec |
file(java.lang.String file)
Set the file that this command is processing.
|
ISPFExec |
gatewayType(java.lang.String gatewayType)
Set the gateway type for the TSOExec command
|
ISPFExec |
groupId(java.lang.String groupId)
Set the group ID for the interactive ISPF Gateway
|
ISPFExec |
keepCommandScript(boolean keepCommandScript)
Sets to
true if the REXX command data set should be kept. |
ISPFExec |
logEncoding(java.lang.String logEncoding)
Set the encoding for the log file this command creates
|
ISPFExec |
logFile(java.io.File logFile)
Sets the path to the log file
|
ISPFExec |
logLevel(int logLevel)
Set the log level for the interactive ISPF Gateway
|
ISPFExec |
options(java.lang.String options)
Set the options to pass to the command
|
ISPFExec |
procedureName(java.lang.String procedureName)
Set the procedure name for the interactive ISPF Gateway
|
ISPFExec |
regionSize(java.lang.String regionSize)
Set the region size for the interactive ISPF Gateway
|
ISPFExec |
response(java.lang.String response)
Set the response command for the interactive ISPF Gateway
|
ISPFExec |
reuseIspfSession(boolean reuseIspfSession)
Sets whether an existing ISPF session should be used
|
ISPFExec |
shExec(java.lang.String shExec)
Sets the path to the Bourne shell executor.
|
getAccountNumber, getCommand, getConfDir, getGatewayType, getGroupId, getLogEncoding, getLogFile, getLogLevel, getOptions, getOutput, getProcedureName, getRegionSize, getShExec, isKeepCommandScript, isReuseIspfSession, isWaitingForResponse, setAccountNumber, setCommand, setConfDir, setGatewayType, setGroupId, setKeepCommandScript, setLogEncoding, setLogFile, setLogLevel, setOptions, setProcedureName, setRegionSize, setResponse, setReuseIspfSession, setShExec
addAllDDStatements, addDDStatement, addDDStatement, addDDStatment, dd, execute, getDDStatements, getFile, setFile
public ISPFExec shExec(java.lang.String shExec)
shExec
- the path to the Bourne shell executorpublic ISPFExec command(java.lang.String command)
command
- to be executedpublic ISPFExec options(java.lang.String options)
options
- the optionspublic ISPFExec confDir(java.lang.String confDir)
confDir
- the configuration directory where runIspf.sh could be foundpublic ISPFExec logFile(java.io.File logFile)
logFile
- the path to the log filepublic ISPFExec reuseIspfSession(boolean reuseIspfSession)
reuseIspfSession
- true
to indicate an existing ISPF session
should be usedpublic ISPFExec keepCommandScript(boolean keepCommandScript)
true
if the REXX command data set should be kept.
By default this data set will be deleted after executionkeepCommandScript
- true
if the REXX command data set should
be keptpublic ISPFExec file(java.lang.String file)
file
- the relative path of the file.public ISPFExec logEncoding(java.lang.String logEncoding)
logEncoding
- the encoding to be used for the log filepublic ISPFExec response(java.lang.String response)
response
- the response for the interactive ISPF Gatewaypublic ISPFExec gatewayType(java.lang.String gatewayType)
gatewayType
- the ISPF Gateway type to call: "legacy" or "interactive"public ISPFExec procedureName(java.lang.String procedureName)
procedureName
- the procedure name used by the interactive ISPF Gatewaypublic ISPFExec accountNumber(java.lang.String accountNumber)
accountNumber
- the account number used by the interactive ISPF Gatewaypublic ISPFExec groupId(java.lang.String groupId)
groupId
- the group ID used by the interactive ISPF Gatewaypublic ISPFExec regionSize(java.lang.String regionSize)
regionSize
- the region size used by the interactive ISPF Gatewaypublic ISPFExec logLevel(int logLevel)
logLevel
- the log level used by the interactive ISPF Gateway<IBM Copyright © 2018 IBM Corp. All Rights Reserved.