Package com.uc4.api.objects
Class AttributesOS400
java.lang.Object
com.uc4.api.objects.AttributesOS400
- All Implemented Interfaces:
IHostAttributes
Host attributes for OS/400 Jobs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of fields in the host attributes.Returns the name of the Job description used for this Job in the form Library/Job description.Returns the Job name.Returns the name of the Job queue in which the this Job has been put.intReturns the priority with which the Job should be executed.Returns the rooting data with which the Job's first rooting step is initiated.booleanReturns whether the Job report transfered to the Automation Engine database.booleanReturnstrueif the Job report will be stored only in case of Job interruption.booleanReturnstrueif the Job report is stored in the file system on the target system.booleanReturnstrueif the entire spool contents of the Job is saved.booleanReturnstrueif the spool contents from QPJOBLOG is saved.booleanReturnstrueif the type CMD is selected.booleanReturnstrueif the type ILE CL is selected.booleanReturnstrueif the type REXX is selected.voidload(com.uc4.util.XMLDocument doc, Element hostAttr, ConnectionAttributes info) Loads the host attributes.name()Returns the host attributes name.voidsetJobDescription(String jobDescription) Sets the name of the Job description used for this Job in the form Library/Job description.voidsetJobName(String jobName) Sets the name which is assigned to the Job during its processing.voidsetJobQueue(String jobQueue) Sets the name of the Job queue in which the this Job has been put.voidsetPriority(int priority) Sets the priority with which the Job should be executed.voidsetReportDatabase(boolean reportDatabase) Sets whether the Job report should be transfered to the database.voidsetReportErrorOnly(boolean reportErrorOnly) Sets whether the Job report should be stored only in case of Job interruption.voidsetReportFile(boolean reportFile) Sets whether the Job report should be stored in the file system on the target system.voidsetRoutingData(String rootingData) Sets the rooting data with which the Job's first rooting step is initiated.voidThe entire spool contents of the Job are saved in the Automation Engine database and/or are available as a member in the target system.voidOnly the spool contents from QPJOBLOG are saved in the Automation Engine database and/or are available as a member in the target system.voidThe Job consists of OS/400 commands.voidThe Job consists of an ILE CL script and is compiled by the Agent before the execution.voidThe Job consists of a REXX script and is given to the interpreter.voidstore(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes info) Writes the host attributes back to theXMLDocument.
-
Constructor Details
-
AttributesOS400
public AttributesOS400()
-
-
Method Details
-
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
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
Description copied from interface:IHostAttributesReturns the host attributes name.- Specified by:
namein interfaceIHostAttributes- Returns:
- name
-
store
Description copied from interface:IHostAttributesWrites the host attributes back to theXMLDocument.- Specified by:
storein interfaceIHostAttributes- Parameters:
doc- DocumentobjectElement- ObjectElementinfo- Session details
-
getRoutingData
Returns the rooting data with which the Job's first rooting step is initiated.- Returns:
- Rooting data
-
setRoutingData
Sets the rooting data with which the Job's first rooting step is initiated. With the rooting data, the root entry (which indicates the program executed by the Job) is determined. Default value: *JOBDrootingDatais converted to upper case. Maximum 255 characters are allowed forrootingData.- Parameters:
rootingData- Rooting data
-
getJobQueue
Returns the name of the Job queue in which the this Job has been put.- Returns:
- Job queue
-
setJobQueue
Sets the name of the Job queue in which the this Job has been put. This appears in the form Library/Job queue where the library may be left out. Default value: *JOBDjobQueueis converted to upper case. Maximum 21 characters are allowed forjobQueue.- Parameters:
jobQueue- Job queue
-
getJobDescription
Returns the name of the Job description used for this Job in the form Library/Job description.- Returns:
- Job Description
-
setJobDescription
Sets the name of the Job description used for this Job in the form Library/Job description. The library may be left out. Default value: *USRPRFjobDescriptionis converted to upper case. Maximum 21 characters are allowed forjobDescription.- Parameters:
jobDescription- Job Description
-
getPriority
public int getPriority()Returns the priority with which the Job should be executed.- Returns:
- Priority
-
setPriority
public void setPriority(int priority) Sets the priority with which the Job should be executed. The priority is a value of 1 (highest priority) to 99 (lowest priority). This value represents the intent of the Job if the Job competes with other Jobs for system resources. If a value has been specified, the Agent - after successful SBMJOB - executes a CHGJOB with this priority.- Parameters:
priority- Priority
-
getJobName
Returns the Job name.- Returns:
- Job name
-
setJobName
Sets the name which is assigned to the Job during its processing. If this attribute is not specified, the Agent creates the name in the form "J" + 7-figure RunID + 2-figure client number. Example: J0421121504 The paramterjobNameis converted to upper case. Maximum 10 characters are allowed forjobName.- Parameters:
jobName- Job Name
-
isTypeREXX
public boolean isTypeREXX()Returnstrueif the type REXX is selected.- Returns:
- Type REXX
-
setTypeREXX
public void setTypeREXX()The Job consists of a REXX script and is given to the interpreter. The Job's Return Code may be set with the REXX statementretcode = 6
-
isTypeILE_CL
public boolean isTypeILE_CL()Returnstrueif the type ILE CL is selected.- Returns:
- Type ILE CL
-
setTypeILE_CL
public void setTypeILE_CL()The Job consists of an ILE CL script and is compiled by the Agent before the execution. The compiled CL program subsequently executed. The Job's Return Code may be set with the CL command"CHGVAR VAR(&RETCODE) VALUE('0')" -
isTypeCMD
public boolean isTypeCMD()Returnstrueif the type CMD is selected.- Returns:
- Type CMD
-
setTypeCMD
public void setTypeCMD()The Job consists of OS/400 commands. If an error occurs in one of these commands, the Job ends incorrectly. The severity code is set as the Job's Return Code. -
isSpoolAll
public boolean isSpoolAll()Returnstrueif the entire spool contents of the Job is saved.- Returns:
- ALL
-
setSpoolAll
public void setSpoolAll()The entire spool contents of the Job are saved in the Automation Engine database and/or are available as a member in the target system. -
setSpoolQPJOBLOG
public void setSpoolQPJOBLOG()Only the spool contents from QPJOBLOG are saved in the Automation Engine database and/or are available as a member in the target system. -
isSpoolQPJOBLOG
public boolean isSpoolQPJOBLOG()Returnstrueif the spool contents from QPJOBLOG is saved.- Returns:
- QPJOBLOG
-
isReportDatabase
public boolean isReportDatabase()Returns whether the Job report transfered to the Automation Engine database.- Returns:
trueif the Job report is transfered to the databasefalseotherwise
-
setReportDatabase
public void setReportDatabase(boolean reportDatabase) Sets whether the Job report should be transfered to the database.- Parameters:
reportDatabase-trueif the job report should be transfered to the databasefalseotherwise
-
isReportErrorOnly
public boolean isReportErrorOnly()Returnstrueif the Job report will be stored only in case of Job interruption. This function is only available when "Database" and/or "File" have been selected.- Returns:
trueif the job report is stored only in case of Job interruption
-
setReportErrorOnly
public void setReportErrorOnly(boolean reportErrorOnly) Sets whether the Job report should be stored only in case of Job interruption. This function is only available when "Database" and/or "File" have been selected.- Parameters:
reportErrorOnly-trueif the job report should be stored only in case of Job interruption
-
isReportFile
public boolean isReportFile()Returnstrueif the Job report is stored in the file system on the target system.- Returns:
trueif the job report is stored in the file system.
-
setReportFile
public void setReportFile(boolean reportFile) Sets whether the Job report should be stored in the file system on the target system.- Parameters:
reportFile-trueif the job report should be stored in the file system
-