Package com.uc4.api.objects
Class AttributesOS390
- java.lang.Object
-
- com.uc4.api.objects.AttributesOS390
-
- All Implemented Interfaces:
IHostAttributes
public class AttributesOS390 extends java.lang.Object implements IHostAttributes
Host attributes for OS/390.
-
-
Constructor Summary
Constructors Constructor Description AttributesOS390()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intfieldCount()Returns the number of fields in the host attributes.java.lang.StringgetAccount()Returns the accounting Information on the Job.intgetCompleteJobLog()Returns the complexity of job log 0 ...java.lang.StringgetFileName()Returns the name of the dataset or member.chargetJobClass()Returns the Job class in which the Job should run.java.lang.StringgetJobName()Returns the name of the Job in the system.java.lang.StringgetJobParameters()Returns additional job parameters, for example "TIME=1440".java.lang.StringgetMessageClassesReport()chargetMsgClass()Returns the Job log's message class.java.lang.StringgetMsgLevel()Returns the trace option for the job log.java.lang.StringgetNotify()Returns a notify on OS/390.java.lang.StringgetPriority()Returns the Job's priority.java.lang.StringgetProgramName()Returns the program name.intgetPurgeJobLog()Returned values: 2 - Whether or not the job log is deleted depends on the configuration of the Agent's INI file (Parameter jobPurge).intgetRelMsgClass()Returned values: 0 ...java.lang.StringgetRouteMessageClass()java.lang.StringgetSchenv()Returns a scheduling environment on OS/390.booleanisSysoutDatabase()Returns whether SYSOUT protocol is saved only in the Automation Engine database.booleanisSysoutErrorOnly()Returns whether SYSOUT protocol is saved only in case of an error.booleanisSysoutFile()Returns whether SYSOUT protocol should be available as a file.booleanisTypeAE()Returnstrueif the Automation Engine (AE) type is selected.booleanisTypeJCL()Returnstrueif the JCL of the Job is found in OS/390.booleanisTypeJCL_JobCard()Returnstrueif the complete JCL including the Job card is used from the dataset which has been specified in the "File name" field.booleanisTypeUC4()Deprecated.By rebranding UC4 to Automic, useisTypeAE()insteadbooleanisUseHighestReturncode()voidload(com.uc4.util.XMLDocument doc, org.w3c.dom.Element hostAttr, ConnectionAttributes info)Loads the host attributes.java.lang.Stringname()Returns the host attributes name.voidsetAccount(java.lang.String account)Sets the accounting Information on the Job.voidsetCompleteJobLog(int completeJobLog)Sets the complexity of job logvoidsetFileName(java.lang.String fileName)Sets the name of the dataset or member which contains the JCL of the Job (Option "JCL from OS/390") or the JCL and the Job card of the Job (Option "JCL incl.voidsetJobClass(char jobClass)Sets the Job class in which the Job should run.voidsetJobName(java.lang.String jobName)Sets the name of the Job in the system.voidsetJobParameters(java.lang.String jobParameters)Specification of additional job parameters, e.g.voidsetMessageClassesReport(java.lang.String messageClassesReport)Sets the message classes which should be read and routed.voidsetMsgClass(char msgClass)Sets the Job log's message class (optional).voidsetMsgLevel(java.lang.String msgLevel)Sets the trace option for the job log (optional).voidsetNotify(java.lang.String notify)Specification of a notify on OS/390.voidsetPriority(java.lang.String priority)Sets the Job's priority (optional).voidsetProgramName(java.lang.String programName)Sets the program name.voidsetPurgeJobLog(int purgeJobLog)Defines if the job log should be deleted.voidsetRelMsgClass(int relMsgClass)Job-log release for printing 0 ...voidsetRouteMessageClass(java.lang.String routeMessageClass)Sets the message classes which should be routed.voidsetSchenv(java.lang.String schEnv)Specification of a scheduling environment on OS/390.voidsetSysoutDatabase(boolean sysoutDatabase)Sets if the SYSOUT protocol should be transfered to the Automation Engine database.voidsetSysoutErrorOnly(boolean sysoutErrorOnly)In case of Job interruption, the SYSOUT protocol is saved in the Automation Engine database and/or a file in the target system.voidsetSysoutFile(boolean sysoutFile)Sets if the SYSOUT protocol should be available as a file in the target system.voidsetTypeAE()The JCL of the Job is stored in the "Pre-Script" and/or "Script" tab.voidsetTypeJCL()The JCL of the Job is found in OS/390.voidsetTypeJCL_JobCard()The complete JCL including the Job card is used from the dataset which has been specified in the "File name" field.voidsetTypeUC4()Deprecated.By rebranding UC4 to Automic, usesetTypeAE()insteadvoidsetUseHighestReturncode(boolean highest)Sets if the highest or latest return code should be used.voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes info)Writes the host attributes back to theXMLDocument.
-
-
-
Method Detail
-
fieldCount
public int fieldCount()
Description copied from interface:IHostAttributesReturns the number of fields in the host attributes.- Specified by:
fieldCountin interfaceIHostAttributes- Returns:
- number of fields
-
load
public void load(com.uc4.util.XMLDocument doc, org.w3c.dom.Element hostAttr, ConnectionAttributes info)Description copied from interface:IHostAttributesLoads the host attributes.- Specified by:
loadin interfaceIHostAttributes- Parameters:
doc- XML Document containing the JobhostAttr- Element which contains host attributesinfo- Session details
-
name
public java.lang.String name()
Description copied from interface:IHostAttributesReturns the host attributes name.- Specified by:
namein interfaceIHostAttributes- Returns:
- name
-
isUseHighestReturncode
public boolean isUseHighestReturncode()
- Returns:
- True if the highest return code should be used, if false the latest return code is used.
-
setUseHighestReturncode
public void setUseHighestReturncode(boolean highest)
Sets if the highest or latest return code should be used.- Parameters:
highest- True if the highest return code should be used, if false the latest return code is used.
-
store
public void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes info)Description copied from interface:IHostAttributesWrites the host attributes back to theXMLDocument.- Specified by:
storein interfaceIHostAttributes- Parameters:
doc- DocumentobjectElement- ObjectElementinfo- Session details
-
getRouteMessageClass
public java.lang.String getRouteMessageClass()
- Returns:
- message classes which should be routed
-
setRouteMessageClass
public void setRouteMessageClass(java.lang.String routeMessageClass)
Sets the message classes which should be routed.- Parameters:
routeMessageClass- message class(es)
-
getRelMsgClass
public int getRelMsgClass()
Returned values:- 0 ... The job log is not released for printing.
- 1 ... The job log is released when it has been read by the Agent
- 2 ... Whether or not the job log is deleted depends on the configuration of the Agent's INI file (Parameter relMsgClass).
- Returns:
- Job-log release for printing
-
setRelMsgClass
public void setRelMsgClass(int relMsgClass)
Job-log release for printing- 0 ... The job log is not released for printing.
- 1 ... The job log is released when it has been read by the Agent
- 2 ... Whether or not the job log is deleted depends on the configuration of the Agent's INI file (Parameter relMsgClass).
- Parameters:
relMsgClass- Job-log release for printing
-
getPurgeJobLog
public int getPurgeJobLog()
Returned values:- 2 - Whether or not the job log is deleted depends on the configuration of the Agent's INI file (Parameter jobPurge).
- 1 - The job log is deleted when it has been read by the Agent.
- 0 - The job log remains in the JES spool.
- Returns:
- Number containing how the job log is deleted.
-
setPurgeJobLog
public void setPurgeJobLog(int purgeJobLog)
Defines if the job log should be deleted.- 2 - Whether or not the job log is deleted depends on the configuration of the Agent's INI file (Parameter jobPurge).
- 1 - The job log is deleted when it has been read by the Agent.
- 0 - The job log remains in the JES spool.
- Parameters:
purgeJobLog- Number containing how the job log is deleted
-
getMessageClassesReport
public java.lang.String getMessageClassesReport()
- Returns:
- Message classes which should be read and routed
-
setMessageClassesReport
public void setMessageClassesReport(java.lang.String messageClassesReport)
Sets the message classes which should be read and routed.Specify one or several message classes. Examples: "A", "ABC", "X1". Any order is possible.
The following values are also permitted: "*DEFAULT" and "*ALL"
- *DEFAULT - The message classes which should be read depend on the configuration of the Agent's INI file (Parameter getMsgClass=). If this setting is used "*DEFAULT" must also be specified in the field "Route to message class/classes
- *ALL" - All classes are read
- Parameters:
messageClassesReport- message class(es)
-
getCompleteJobLog
public int getCompleteJobLog()
Returns the complexity of job log- 0 ... No - Only the JES statistics (JESMSGLG, JESJCL and JESYSMSG) are included
- 1 ... Yes - The JES statistics and job output are stored in the job log
- 2 ... Default - the job-log complexity depends on the configuration of the Agent's INI file (Parameter completeJobout)
- Returns:
- complexity of job log
-
setCompleteJobLog
public void setCompleteJobLog(int completeJobLog)
Sets the complexity of job logPermitted values:
- 0 ... No - Only the JES statistics (JESMSGLG, JESJCL and JESYSMSG) are included
- 1 ... Yes - The JES statistics and job output are stored in the job log
- 2 ... Default - the job-log complexity depends on the configuration of the Agent's INI file (Parameter completeJobout)
- Parameters:
completeJobLog- complexity of job log
-
getFileName
public java.lang.String getFileName()
Returns the name of the dataset or member.- Returns:
- File name
-
setFileName
public void setFileName(java.lang.String fileName)
Sets the name of the dataset or member which contains- the JCL of the Job (Option "JCL from OS/390") or
- the JCL and the Job card of the Job (Option "JCL incl. Job card from OS/390").
Example: SYSS.UC4.JCL.JOB1 or SYSS.UC4.JCLLIB(UC4JOB1)
Jobs can also come from the source administration system Librarian. The following syntax applies:*LIBRARIAN(Dataset, Member).
A maximum of 225 characters are allowed.- Parameters:
fileName- File name
-
getJobParameters
public java.lang.String getJobParameters()
Returns additional job parameters, for example "TIME=1440". Multiple job parameters are should be separated by commas.- Returns:
- additional job parameters
-
setJobParameters
public void setJobParameters(java.lang.String jobParameters)
Specification of additional job parameters, e.g. "TIME=1440". Multiple job parameters are should be separated by commas.- Parameters:
jobParameters- additional job parameters
-
getNotify
public java.lang.String getNotify()
Returns a notify on OS/390.- Returns:
- Notification
-
setNotify
public void setNotify(java.lang.String notify)
Specification of a notify on OS/390. Maximum 17 characters permitted.- Parameters:
notify- Notification
-
getSchenv
public java.lang.String getSchenv()
Returns a scheduling environment on OS/390.- Returns:
- Schenv
-
setSchenv
public void setSchenv(java.lang.String schEnv)
Specification of a scheduling environment on OS/390. Maximum 16 characters permitted.- Parameters:
schEnv- scheduling environment
-
getMsgClass
public char getMsgClass()
Returns the Job log's message class.- Returns:
- Msgclass
-
setMsgClass
public void setMsgClass(char msgClass)
Sets the Job log's message class (optional).- Parameters:
msgClass- Msgclass
-
getMsgLevel
public java.lang.String getMsgLevel()
Returns the trace option for the job log.- Returns:
- Msglevel
-
setMsgLevel
public void setMsgLevel(java.lang.String msgLevel)
Sets the trace option for the job log (optional).Possibly a numerical value for command and message separated by a comma. Permitted formats: "Command,Message", ",Message" or "Command" Permitted values for outputting commands:
"0" - Output only commands. "1" - All job commands, JES2 or JES3 control commands, procedure commands and all IEF653I messages. "2" - Only all job commands (JCL) and the JES2 or JES3 control commands.
Permitted value for outputting messages:"0" - Only JCL messages. For cancels, also JES control commands and operator messages. For SMS errors, also the corresponding messages. "1" - All JCL, JES, operator and SMS messages.- Parameters:
msgLevel- Msglevel
-
getPriority
public java.lang.String getPriority()
Returns the Job's priority.- Returns:
- Priority
-
setPriority
public void setPriority(java.lang.String priority)
Sets the Job's priority (optional). A value between "0" and "15" may be entered for priority. An empty String ornullcan be used to clear this field.- Parameters:
priority- Priority
-
getAccount
public java.lang.String getAccount()
Returns the accounting Information on the Job.- Returns:
- accounting Information
-
setAccount
public void setAccount(java.lang.String account)
Sets the accounting Information on the Job. A maximum of 40 characters are allowed.- Parameters:
account- accounting Information
-
getProgramName
public java.lang.String getProgramName()
Returns the program name.- Returns:
- Program name
-
setProgramName
public void setProgramName(java.lang.String programName)
Sets the program name. Identifies the Job's owner or its group (optional). The name is recorded in the job card of the job. Maximum 20 characters permitted.- Parameters:
programName- Program name
-
getJobClass
public char getJobClass()
Returns the Job class in which the Job should run.- Returns:
- Job class
-
setJobClass
public void setJobClass(char jobClass)
Sets the Job class in which the Job should run.- Parameters:
jobClass- Job class
-
getJobName
public java.lang.String getJobName()
Returns the name of the Job in the system.- Returns:
- Job name
-
setJobName
public void setJobName(java.lang.String jobName)
Sets the name of the Job in the system. A maximum of 8 characters is allowed.jobNameis converted to uppercase.- Parameters:
jobName- Job name
-
isTypeJCL_JobCard
public boolean isTypeJCL_JobCard()
Returnstrueif the complete JCL including the Job card is used from the dataset which has been specified in the "File name" field.- Returns:
- True or False according to the description above.
-
setTypeJCL_JobCard
public void setTypeJCL_JobCard()
The complete JCL including the Job card is used from the dataset which has been specified in the "File name" field. Complete runtime options are not available because the definitions of the Job card apply. When generating the Job the JCL from the Pre-Script is added before the first step. The script must be empty.
-
isTypeJCL
public boolean isTypeJCL()
Returnstrueif the JCL of the Job is found in OS/390.- Returns:
- True or False according to the description above.
-
setTypeJCL
public void setTypeJCL()
The JCL of the Job is found in OS/390. If this option is selected, "File Name" must be specified. the Job card is generated from the host attributes defined here. The JCL from the Pre-Script is added before the first step. The script must be empty.
-
isTypeUC4
@Deprecated public boolean isTypeUC4()
Deprecated.By rebranding UC4 to Automic, useisTypeAE()insteadReturnstrueif the UC4 type is selected.- Returns:
- True or False according to the description above.
-
setTypeUC4
@Deprecated public void setTypeUC4()
Deprecated.By rebranding UC4 to Automic, usesetTypeAE()insteadThe JCL of the Job is stored in the "Pre-Script" and/or "Script" tab.
-
isTypeAE
public boolean isTypeAE()
Returnstrueif the Automation Engine (AE) type is selected.- Returns:
- True or False according to the description above.
-
setTypeAE
public void setTypeAE()
The JCL of the Job is stored in the "Pre-Script" and/or "Script" tab.
-
isSysoutDatabase
public boolean isSysoutDatabase()
Returns whether SYSOUT protocol is saved only in the Automation Engine database.- Returns:
trueif the SYSOUT protocol is saved in the databasefalseotherwise
-
setSysoutDatabase
public void setSysoutDatabase(boolean sysoutDatabase)
Sets if the SYSOUT protocol should be transfered to the Automation Engine database.- Parameters:
sysoutDatabase-trueif the SYSOUT protocol should be saved in the databasefalseotherwise
-
isSysoutErrorOnly
public boolean isSysoutErrorOnly()
Returns whether SYSOUT protocol is saved only in case of an error.- Returns:
trueif the SYSOUT protocol is saved only in case of an errorfalseotherwise
-
setSysoutErrorOnly
public void setSysoutErrorOnly(boolean sysoutErrorOnly)
In case of Job interruption, the SYSOUT protocol is saved in the Automation Engine database and/or a file in the target system. This is only available when "Database" and/or "File" have been selected.- Parameters:
sysoutErrorOnly- Save SYSOUT protocol in error case only
-
isSysoutFile
public boolean isSysoutFile()
Returns whether SYSOUT protocol should be available as a file.- Returns:
trueif the SYSOUT protocol should be available as a filefalseotherwise
-
setSysoutFile
public void setSysoutFile(boolean sysoutFile)
Sets if the SYSOUT protocol should be available as a file in the target system.- Parameters:
sysoutFile-trueif the SYSOUT protocol should be available as a file
-
-