com.ibm.as400.resource
Class RJob

java.lang.Object
  |
  +--com.ibm.as400.resource.Resource
        |
        +--com.ibm.as400.resource.ChangeableResource
              |
              +--com.ibm.as400.resource.RJob
All Implemented Interfaces:
java.io.Serializable

public class RJob
extends ChangeableResource

The RJob class represents an AS/400 job. In order to access a job, the system and either the job name, user name, and job number or internal job identifier need to be set. A valid combination of these must be set by getting or setting any of the job's attributes.

If you do not specify any of the job name, user name, job number, or internal job identifier properties, the default job is used. The default job is the host server job for remote program calls.

The following attribute IDs are supported:

Use any of these attribute IDs with getAttributeValue() and setAttributeValue() to access the attribute values for an RJob.

// Create an RJob object to refer to a specific job.
AS400 system = new AS400("MYSYSTEM", "MYUSERID", "MYPASSWORD");
RJob job = new RJob(system, "AJOBNAME", "AUSERID", "AJOBNUMBER");

// Get the job subtype. String jobSubtype = (String)job.getAttributeValue(RJob.JOB_SUBTYPE);
// Set the date format for a job to Julian. job.setAttributeValue(RJob.DATE_FORMAT, RJob.DATE_FORMAT_JULIAN);
// Commit the attribute change. job.commitAttributeChanges();

See Also:
RJobList, Serialized Form

Field Summary
static java.lang.String ACCOUNTING_CODE
          Attribute ID for accounting code.
static java.lang.String ACTIVE_JOB_STATUS
          Attribute ID for active job status.
static java.lang.String AUXILIARY_IO_REQUESTS
          Attribute ID for auxiliary I/O requests.
static java.lang.String BREAK_MESSAGE_HANDLING
          Attribute ID for break message handling.
static java.lang.String BREAK_MESSAGE_HANDLING_HOLD
          Attribute value indicating that the message queue holds break messages until a user or program requests them.
static java.lang.String BREAK_MESSAGE_HANDLING_NORMAL
          Attribute value indicating that the message queue status determines break message handling.
static java.lang.String BREAK_MESSAGE_HANDLING_NOTIFY
          Attribute value indicating that the system notifies the job's message queue when a message arrives.
static java.lang.String CCSID
          Attribute ID for coded character set identifier (CCSID).
static int CCSID_INITIAL_USER
          Attribute value indicating that the CCSID specified in the user profile under which this thread was initially running is used.
static int CCSID_SYSTEM_VALUE
          Attribute value indicating that the CCSID specified in the system value QCCSID is used.
static java.lang.String COMPLETION_STATUS
          Attribute ID for completion status.
static java.lang.String COMPLETION_STATUS_COMPLETED_ABNORMALLY
          Attribute value indicating that the job completed abnormally.
static java.lang.String COMPLETION_STATUS_COMPLETED_NORMALLY
          Attribute value indicating that the job completed normally.
static java.lang.String COMPLETION_STATUS_NOT_COMPLETED
          Attribute value indicating that the job has not completed.
static java.lang.String CONTROLLED_END_REQUESTED
          Attribute ID for controlled end requested.
static java.lang.String CONTROLLED_END_REQUESTED_CANCELED
          Attribute value indicating that the system, the subsystem in which the job is running, or the job itself is canceled.
static java.lang.String CONTROLLED_END_REQUESTED_NOT_CANCELED
          Attribute value indicating that the system, subsystem, or job is not canceled.
static java.lang.String CONTROLLED_END_REQUESTED_NOT_RUNNING
          Attribute value indicating that the job is not running.
static java.lang.String COUNTRY_ID
          Attribute ID for country ID.
static java.lang.String CPU_TIME_USED
          Attribute ID for CPU time used.
static java.lang.String CURRENT_LIBRARY
          Attribute ID for current library.
static java.lang.String CURRENT_LIBRARY_EXISTENCE
          Attribute ID for current library existence.
static java.lang.String CURRENT_SYSTEM_POOL_ID
          Attribute ID for current system pool ID.
static java.lang.String CURRENT_USER
          Attribute ID for current user.
static java.lang.String DATE_ENTERED_SYSTEM
          Attribute ID for date entered system.
static java.lang.String DATE_FORMAT
          Attribute ID for date format.
static java.lang.String DATE_FORMAT_DMY
          Attribute value indicating the day, month, and year date format.
static java.lang.String DATE_FORMAT_JULIAN
          Attribute value indicating the Julian date format.
static java.lang.String DATE_FORMAT_MDY
          Attribute value indicating the month, day, and year date format.
static java.lang.String DATE_FORMAT_SYSTEM_VALUE
          Attribute value indicating that the system value QDATFMT is used.
static java.lang.String DATE_FORMAT_YMD
          Attribute value indicating the year, month, and day date format.
static java.lang.String DATE_SEPARATOR
          Attribute ID for date separator.
static java.lang.String DATE_SEPARATOR_SYSTEM_VALUE
          Attribute value indicating that the system value QDATSEP is used.
static java.lang.String DATE_STARTED
          Attribute ID for date started.
static java.lang.String DBCS_CAPABLE
          Attribute ID for DBCS capable.
static java.lang.String DECIMAL_FORMAT
          Attribute ID for decimal format.
static java.lang.String DECIMAL_FORMAT_COMMA_I
          Attribute value indicating the date format that uses a comma for a decimal point and a period for a 3-digit grouping character.
static java.lang.String DECIMAL_FORMAT_COMMA_J
          Attribute value indicating the date format that uses a comma for a decimal point, a period for a 3-digit grouping character, and zero-suppresses to the left of the decimal point.
static java.lang.String DECIMAL_FORMAT_PERIOD
          Attribute value indicating the date format that uses a period for a decimal point, a comma for a 3-digit grouping character, and zero-suppresses to the left of the decimal point.
static java.lang.String DEFAULT_CCSID
          Attribute ID for default coded character set identifier (CCSID).
static java.lang.String DEFAULT_WAIT_TIME
          Attribute ID for default wait time.
static java.lang.String DEVICE_RECOVERY_ACTION
          Attribute ID for device recovery action.
static java.lang.String DEVICE_RECOVERY_ACTION_DISCONNECT_END_REQUEST
          Attribute value indicating the device recovery action that disconnects the job when an I/O error occurs.
static java.lang.String DEVICE_RECOVERY_ACTION_DISCONNECT_MESSAGE
          Attribute value indicating the device recovery action that disconnects the job when an I/O error occurs.
static java.lang.String DEVICE_RECOVERY_ACTION_END_JOB
          Attribute value indicating the device recovery action that ends the job when an I/O error occurs.
static java.lang.String DEVICE_RECOVERY_ACTION_END_JOB_NO_LIST
          Attribute value indicating the device recovery action that ends the job when an I/O error occurs.
static java.lang.String DEVICE_RECOVERY_ACTION_MESSAGE
          Attribute value indicating the device recovery action that signals the I/O error message to the application and lets the application program perform error recovery.
static java.lang.String ELIGIBLE_FOR_PURGE
          Attribute ID for eligible for purge.
static java.lang.String END_SEVERITY
          Attribute ID for end severity.
static java.lang.String FUNCTION_NAME
          Attribute ID for function name.
static java.lang.String FUNCTION_TYPE
          Attribute ID for function type.
static java.lang.String FUNCTION_TYPE_BLANK
          Attribute value indicating that the system is not performing a logged function.
static java.lang.String FUNCTION_TYPE_COMMAND
          Attribute value indicating that a command is running interactively, or it is in a batch input stream, or it was requested from a system menu.
static java.lang.String FUNCTION_TYPE_DELAY
          Attribute value indicating that the initial thread of the job is processing a Delay Job (DLYJOB) command.
static java.lang.String FUNCTION_TYPE_GROUP
          Attribute value indicating that the Transfer Group Job (TFRGRPJOB) command suspended the job.
static java.lang.String FUNCTION_TYPE_INDEX
          Attribute value indicating that the initial thread of the job is rebuilding an index (access path).
static java.lang.String FUNCTION_TYPE_IO
          Attribute value indicating that the job is a subsystem monitor that is performing input/output (I/O) operations to a work station.
static java.lang.String FUNCTION_TYPE_LOG
          Attribute value indicating that the system logs history information in a database file.
static java.lang.String FUNCTION_TYPE_MENU
          Attribute value indicating that the initial thread of the job is currently at a system menu.
static java.lang.String FUNCTION_TYPE_MRT
          Attribute value indicating that the job is a multiple requester terminal (MRT) job is the job type is JOB_TYPE_BATCH and the job subtype is JOB_SUBTYPE_MRT, or it is an interactive job attached to an MRT job if the job type is JOB_TYPE_INTERACTIVE.
static java.lang.String FUNCTION_TYPE_PROCEDURE
          Attribute value indicating that the initial thread of the job is running a procedure.
static java.lang.String FUNCTION_TYPE_PROGRAM
          Attribute value indicating that the initial thread of the job is running a program.
static java.lang.String FUNCTION_TYPE_SPECIAL
          Attribute value indicating that the function type is special.
static java.lang.String INQUIRY_MESSAGE_REPLY
          Attribute ID for inquiry message reply.
static java.lang.String INQUIRY_MESSAGE_REPLY_DEFAULT
          Attribute value indicating that the system uses the default message reply to answer any inquiry messages issued while this job is running.
static java.lang.String INQUIRY_MESSAGE_REPLY_REQUIRED
          Attribute value indicating that the job requires an answer for any inquiry messages that occur while this job is running.
static java.lang.String INQUIRY_MESSAGE_REPLY_SYSTEM_REPLY_LIST
          Attribute value indicating that the system reply list is checked to see if there is an entry for an inquiry message issued while this job is running.
static java.lang.String INSTANCE
          Attribute ID for instance.
static java.lang.String INTERACTIVE_TRANSACTIONS
          Attribute ID for interactive transactions.
static java.lang.String INTERNAL_JOB_ID
          Attribute ID for internal job identifier.
static java.lang.String JOB_DATE
          Attribute ID for job date.
static java.lang.String JOB_DESCRIPTION
          Attribute ID for job description.
static java.lang.String JOB_NAME
          Attribute ID for job name.
static java.lang.String JOB_NUMBER
          Attribute ID for job number.
static java.lang.String JOB_QUEUE
          Attribute ID for job queue.
static java.lang.String JOB_QUEUE_DATE
          Attribute ID for job queue date.
static java.lang.String JOB_QUEUE_PRIORITY
          Attribute ID for job queue priority.
static java.lang.String JOB_QUEUE_STATUS
          Attribute ID for job queue status.
static java.lang.String JOB_QUEUE_STATUS_BLANK
          Attribute value indicating that the job is not on a job queue.
static java.lang.String JOB_QUEUE_STATUS_HELD
          Attribute value indicating that the job is being held on the job queue.
static java.lang.String JOB_QUEUE_STATUS_RELEASED
          Attribute value indicating that the job is ready to be selected.
static java.lang.String JOB_QUEUE_STATUS_SCHEDULED
          Attribute value indicating that the job will run as scheduled.
static java.lang.String JOB_STATUS
          Attribute ID for job status.
static java.lang.String JOB_STATUS_ACTIVE
          Attribute value indicating that the job is active.
static java.lang.String JOB_STATUS_JOBQ
          Attribute value indicating that the job is currently on a job queue.
static java.lang.String JOB_STATUS_OUTQ
          Attribute value indicating that the job has completed running.
static java.lang.String JOB_SUBTYPE
          Attribute ID for job subtype.
static java.lang.String JOB_SUBTYPE_ALTERNATE_SPOOL_USER
          Attribute value indicating alternate spool user.
static java.lang.String JOB_SUBTYPE_BLANK
          Attribute value indicating that the job has no special subtype or is not a valid job.
static java.lang.String JOB_SUBTYPE_IMMEDIATE
          Attribute value indicating that the job is an immediate job.
static java.lang.String JOB_SUBTYPE_MACHINE_SERVER_JOB
          Attribute value indicating that the job is an AS/400 Advanced 36 machine server job.
static java.lang.String JOB_SUBTYPE_MRT
          Attribute value indicating that the job is a System/36 multiple requester terminal (MRT) job.
static java.lang.String JOB_SUBTYPE_PRESTART
          Attribute value indicating that the job is a prestart job.
static java.lang.String JOB_SUBTYPE_PRINT_DRIVER
          Attribute value indicating that the job is a print driver job.
static java.lang.String JOB_SUBTYPE_PROCEDURE_START_REQUEST
          Attribute value indicating that the job started with a procedure start request.
static java.lang.String JOB_SWITCHES
          Attribute ID for switch settings.
static java.lang.String JOB_TYPE
          Attribute ID for job type.
static java.lang.String JOB_TYPE_AUTOSTART
          Attribute value indicating that the job is an autostart job.
static java.lang.String JOB_TYPE_BATCH
          Attribute value indicating that the job is a batch job.
static java.lang.String JOB_TYPE_INTERACTIVE
          Attribute value indicating that the job is an interactive job.
static java.lang.String JOB_TYPE_NOT_VALID
          Attribute value indicating that the job is not a valid job.
static java.lang.String JOB_TYPE_SCPF_SYSTEM
          Attribute value indicating that the job is the SCPF system job.
static java.lang.String JOB_TYPE_SPOOLED_READER
          Attribute value indicating that the job is a spooled reader job.
static java.lang.String JOB_TYPE_SPOOLED_WRITER
          Attribute value indicating that the job is a spooled writer job.
static java.lang.String JOB_TYPE_SUBSYSTEM_MONITOR
          Attribute value indicating that the job is a subsystem monitor job.
static java.lang.String JOB_TYPE_SYSTEM
          Attribute value indicating that the job is a system job.
static java.lang.String KEEP_DDM_CONNECTIONS_ACTIVE
          Attribute ID for keep DDM connections active.
static java.lang.String KEEP_DDM_CONNECTIONS_ACTIVE_DROP
          Attribute value indicating that the system ends a DDM connection when there are no users.
static java.lang.String KEEP_DDM_CONNECTIONS_ACTIVE_KEEP
          Attribute value indicating that the system keeps DDM connections active when there are no users.
static java.lang.String LANGUAGE_ID
          Attribute ID for language ID.
static java.lang.String LOCATION_NAME
          Attribute ID for location name.
static java.lang.String LOG_CL_PROGRAMS
          Attribute ID for logging CL programs.
static java.lang.String LOGGING_LEVEL
          Attribute ID for logging level.
static java.lang.String LOGGING_LEVEL_ALL_REQUESTS_AND_ASSOCIATED_MESSAGES
          Attribute value indicating that all requests or commands from CL programs and all messages associated with those requests or commands that have a severity code greater than or equal to the logging severity are logged.
static java.lang.String LOGGING_LEVEL_ALL_REQUESTS_AND_MESSAGES
          Attribute value indicating that all requests or commands from CL programs and all messages with a severity code greater than or equal to the logging severity are logged.
static java.lang.String LOGGING_LEVEL_MESSAGES_BY_SEVERITY
          Attribute value indicating that all messages sent to the job's external message queue with a severity greater than or equal to the message logging severity are logged.
static java.lang.String LOGGING_LEVEL_NONE
          Attribute value indicating that no messages are logged.
static java.lang.String LOGGING_LEVEL_REQUESTS_BY_SEVERITY_AND_ASSOCIATED_MESSAGES
          Attribute value indicating that requests or commands from CL programs for which the system issues messages with a severity code greater than or equal to the logging severity and all messages associated with those requests or commands that have a severity code greater than or equal to the logging severity are logged.
static java.lang.String LOGGING_SEVERITY
          Attribute ID for logging severity.
static java.lang.String LOGGING_TEXT
          Attribute ID for logging text.
static java.lang.String LOGGING_TEXT_MESSAGE
          Attribute value indicating that only the message is written to the job log.
static java.lang.String LOGGING_TEXT_NO_LIST
          Attribute value indicating that if the job ends normally, there is no job log.
static java.lang.String LOGGING_TEXT_SECLVL
          Attribute value indicating that both the message and the message help for the error message are written to the job log.
static java.lang.String MAX_CPU_TIME
          Attribute ID for maximum CPU time.
static java.lang.String MAX_TEMP_STORAGE
          Attribute ID for maximum temporary storage.
static java.lang.String MESSAGE_QUEUE_ACTION
          Attribute ID for message queue action.
static java.lang.String MESSAGE_QUEUE_ACTION_NO_WRAP
          Attribute value indicating that the message queue does not wrap.
static java.lang.String MESSAGE_QUEUE_ACTION_PRINT_WRAP
          Attribute value indicating that the message queue wraps and prints the messages that are being overlaid because of the wrapping.
static java.lang.String MESSAGE_QUEUE_ACTION_WRAP
          Attribute value indicating that the message queue wraps to the beginning and starts filling again when the message queue is full.
static java.lang.String MESSAGE_QUEUE_MAX_SIZE
          Attribute ID for message queue maximum size.
static java.lang.String MODE
          Attribute ID for mode.
static java.lang.String NETWORK_ID
          Attribute ID for network ID.
static java.lang.String NO
          Attribute value for no.
static java.util.Date NO_DATE
          Attribute value for no date.
static java.lang.String NONE
          Attribute value for none.
static java.lang.String OUTPUT_QUEUE
          Attribute ID for output queue.
static java.lang.String OUTPUT_QUEUE_PRIORITY
          Attribute ID for output queue priority.
static java.lang.String PRINT_KEY_FORMAT
          Attribute ID for print key format.
static java.lang.String PRINT_KEY_FORMAT_ALL
          Attribute value indicating that the border and header information is included with output from the Print key.
static java.lang.String PRINT_KEY_FORMAT_BORDER
          Attribute value indicating that the border information is included with output from the Print key.
static java.lang.String PRINT_KEY_FORMAT_HEADER
          Attribute value indicating that the header information is included with output from the Print key.
static java.lang.String PRINT_TEXT
          Attribute ID for print text.
static java.lang.String PRINTER_DEVICE_NAME
          Attribute ID for printer device name.
static java.lang.String PRINTER_DEVICE_NAME_WORK_STATION
          Attribute value indicating that the default printer device used with this job is the printer device assigned to the work station that is associated with the job.
static java.lang.String PRODUCT_LIBRARIES
          Attribute ID for product libraries.
static java.lang.String PRODUCT_RETURN_CODE
          Attribute ID for product return code.
static java.lang.String PROGRAM_RETURN_CODE
          Attribute ID for program return code.
static java.lang.String ROUTING_DATA
          Attribute ID for routing data.
static java.lang.String RUN_PRIORITY
          Attribute ID for run priority.
static java.lang.String SCHEDULE_DATE
          Attribute ID for schedule date.
static java.util.Date SCHEDULE_DATE_CURRENT
          Attribute value indicating that the submitted job becomes eligible to run at the current date.
static java.util.Date SCHEDULE_DATE_FRIDAY
          Attribute value indicating that the submitted job becomes eligible to run on Friday.
static java.util.Date SCHEDULE_DATE_MONDAY
          Attribute value indicating that the submitted job becomes eligible to run on Monday.
static java.util.Date SCHEDULE_DATE_MONTH_END
          Attribute value indicating that the submitted job becomes eligible to run on the last day of the month.
static java.util.Date SCHEDULE_DATE_MONTH_START
          Attribute value indicating that the submitted job becomes eligible to run on the first day of the month.
static java.util.Date SCHEDULE_DATE_SATURDAY
          Attribute value indicating that the submitted job becomes eligible to run on Saturday.
static java.util.Date SCHEDULE_DATE_SUNDAY
          Attribute value indicating that the submitted job becomes eligible to run on Sunday.
static java.util.Date SCHEDULE_DATE_THURSDAY
          Attribute value indicating that the submitted job becomes eligible to run on Thursday.
static java.util.Date SCHEDULE_DATE_TUESDAY
          Attribute value indicating that the submitted job becomes eligible to run on Tuesday.
static java.util.Date SCHEDULE_DATE_WEDNESDAY
          Attribute value indicating that the submitted job becomes eligible to run on Wednesday.
static java.lang.String SEQUENCE_NUMBER
          Attribute ID for sequence number.
static java.lang.String SERVER_TYPE
          Attribute ID for server type.
static java.lang.String SIGNED_ON_JOB
          Attribute ID for signed on job.
static java.lang.String SORT_SEQUENCE_TABLE
          Attribute ID for sort sequence table.
static java.lang.String SPECIAL_ENVIRONMENT
          Attribute ID for special environment.
static java.lang.String SPECIAL_ENVIRONMENT_NOT_ACTIVE
          Attribute value indicating that the job is not currently active.
static java.lang.String SPECIAL_ENVIRONMENT_SYSTEM_36
          Attribute value indicating that the job is running in the System/36 environment.
static java.lang.String STATUS_MESSAGE_HANDLING
          Attribute ID for status message handling.
static java.lang.String STATUS_MESSAGE_HANDLING_NORMAL
          Attribute value indicating that this job displays status messages.
static java.lang.String SUBMITTED_BY_JOB_NAME
          Attribute ID for submitted by job name.
static java.lang.String SUBMITTED_BY_JOB_NUMBER
          Attribute ID for submitted by job number.
static java.lang.String SUBMITTED_BY_USER
          Attribute ID for submitted by user.
static java.lang.String SUBSYSTEM
          Attribute ID for subsystem.
static java.lang.String SYSTEM_LIBRARY_LIST
          Attribute ID for system library list.
static java.lang.String SYSTEM_POOL_ID
          Attribute ID for system pool ID.
static java.lang.String SYSTEM_VALUE
          Attribute value for system value.
static java.lang.String TEMP_STORAGE_USED
          Attribute ID for temporary storage used.
static java.lang.String THREAD_COUNT
          Attribute ID for thread count.
static java.lang.String TIME_SEPARATOR
          Attribute ID for time separator.
static java.lang.String TIME_SEPARATOR_SYSTEM_VALUE
          Attribute value indicating that the system value QTIMSEP is used.
static java.lang.String TIME_SLICE
          Attribute ID for time slice.
static java.lang.String TIME_SLICE_END_POOL
          Attribute ID for time slice end pool.
static java.lang.String TIME_SLICE_END_POOL_BASE
          Attribute value indicating that a thread in the job moves to the base pool when it reaches the end of its time slice.
static java.lang.String TOTAL_RESPONSE_TIME
          Attribute ID for total response time.
static java.lang.String USER_LIBRARY_LIST
          Attribute ID for user library list.
static java.lang.String USER_NAME
          Attribute ID for user name.
static java.lang.String USER_PROFILE
          Attribute value for user profile.
static java.lang.String USER_RETURN_CODE
          Attribute ID for user return code.
static java.lang.String YES
          Attribute value for yes.
 
Constructor Summary
RJob()
          Constructs an RJob object.
RJob(AS400 system)
          Constructs an RJob object.
RJob(AS400 system, byte[] internalJobID)
          Constructs an RJob object.
RJob(AS400 system, java.lang.String name, java.lang.String user, java.lang.String number)
          Constructs an RJob object.
 
Method Summary
protected  void commitAttributeChanges(java.lang.Object[] attributeIDs, java.lang.Object[] values, int[] bidiStringTypes)
          Commits the specified attribute changes.
 void createResource(java.lang.Object[] attributeIDs, java.lang.Object[] values)
          Creates the resource using the specified attribute values.
 void end()
          Ends the job controlled.
 void end(int delayTime)
          Ends the job.
protected  void establishConnection()
          Establishes the connection to the AS/400.
protected  void freezeProperties()
          Freezes any property changes.
 java.lang.Object getAttributeUnchangedValue(java.lang.Object attributeID, int bidiStringType)
          Returns the unchanged value of an attribute.
 byte[] getInternalJobID()
          Returns the internal job identifier.
 java.lang.String getName()
          Returns the job name.
 java.lang.String getNumber()
          Returns the job number.
 java.lang.String getUser()
          Returns the user name.
protected  boolean isBidiEnabled()
          Indicates if this resource is enabled for bidirectional character conversion.
 void refreshAttributeValues()
          Refreshes the values for all attributes.
 void setInternalJobID(byte[] internalJobID)
          Sets the internal job identifier.
 void setName(java.lang.String name)
          Sets the job name.
 void setNumber(java.lang.String number)
          Sets the job number.
 void setUser(java.lang.String user)
          Sets the user name.
 java.lang.String toString()
          Returns the string representation in the format "number/user/name".
 
Methods inherited from class com.ibm.as400.resource.ChangeableResource
cancelAttributeChanges, commitAttributeChanges, commitAttributeChanges, fireAttributeChangesCanceled, fireAttributeChangesCommitted, fireAttributeValueChanged, fireResourceCreated, fireResourceDeleted, getAttributeUnchangedValue, getAttributeValue, getAttributeValue, hasUncommittedAttributeChanges, initializeAttributeValue, setAttributeValue, setAttributeValue
 
Methods inherited from class com.ibm.as400.resource.Resource
addActiveStatusListener, addPropertyChangeListener, addResourceListener, addVetoableChangeListener, arePropertiesFrozen, equals, fireAttributeValuesRefreshed, fireBusy, fireIdle, firePropertyChange, fireVetoableChange, getAttributeMetaData, getAttributeMetaData, getPresentation, getResourceKey, getSystem, isConnectionEstablished, removeActiveStatusListener, removePropertyChangeListener, removeResourceListener, removeVetoableChangeListener, setPresentation, setResourceKey, setSystem
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SYSTEM_VALUE

public static final java.lang.String SYSTEM_VALUE
Attribute value for system value.

USER_PROFILE

public static final java.lang.String USER_PROFILE
Attribute value for user profile.

YES

public static final java.lang.String YES
Attribute value for yes.

NO

public static final java.lang.String NO
Attribute value for no.

NONE

public static final java.lang.String NONE
Attribute value for none.

NO_DATE

public static final java.util.Date NO_DATE
Attribute value for no date.

ACCOUNTING_CODE

public static final java.lang.String ACCOUNTING_CODE
Attribute ID for accounting code. This identifies a String attribute, which represents the identifier assigned to the job by the system to collect resource use information for the job when job accounting is active.

ACTIVE_JOB_STATUS

public static final java.lang.String ACTIVE_JOB_STATUS
Attribute ID for active job status. This identifies a read-only String attribute, which represents the active status of the initial thread.

AUXILIARY_IO_REQUESTS

public static final java.lang.String AUXILIARY_IO_REQUESTS
Attribute ID for auxiliary I/O requests. This identifies a read-only Integer attribute, which represents the number of auxiliary I/O requests for the initial thread of the job.

BREAK_MESSAGE_HANDLING

public static final java.lang.String BREAK_MESSAGE_HANDLING
Attribute ID for break message handling. This identifies a String attribute, which represents how this job handles break messages. Possible values are:

BREAK_MESSAGE_HANDLING_NORMAL

public static final java.lang.String BREAK_MESSAGE_HANDLING_NORMAL
Attribute value indicating that the message queue status determines break message handling.
See Also:
BREAK_MESSAGE_HANDLING

BREAK_MESSAGE_HANDLING_HOLD

public static final java.lang.String BREAK_MESSAGE_HANDLING_HOLD
Attribute value indicating that the message queue holds break messages until a user or program requests them.
See Also:
BREAK_MESSAGE_HANDLING

BREAK_MESSAGE_HANDLING_NOTIFY

public static final java.lang.String BREAK_MESSAGE_HANDLING_NOTIFY
Attribute value indicating that the system notifies the job's message queue when a message arrives.
See Also:
BREAK_MESSAGE_HANDLING

CCSID

public static final java.lang.String CCSID
Attribute ID for coded character set identifier (CCSID). This identifies an Integer attribute.

The following special values can be used when setting the CCSID:


CCSID_SYSTEM_VALUE

public static final int CCSID_SYSTEM_VALUE
Attribute value indicating that the CCSID specified in the system value QCCSID is used.
See Also:
CCSID

CCSID_INITIAL_USER

public static final int CCSID_INITIAL_USER
Attribute value indicating that the CCSID specified in the user profile under which this thread was initially running is used.
See Also:
CCSID

COMPLETION_STATUS

public static final java.lang.String COMPLETION_STATUS
Attribute ID for completion status. This identifies a read-only String attribute, which represents the completion status of the job. Possible values are:

COMPLETION_STATUS_NOT_COMPLETED

public static final java.lang.String COMPLETION_STATUS_NOT_COMPLETED
Attribute value indicating that the job has not completed.
See Also:
COMPLETION_STATUS

COMPLETION_STATUS_COMPLETED_NORMALLY

public static final java.lang.String COMPLETION_STATUS_COMPLETED_NORMALLY
Attribute value indicating that the job completed normally.
See Also:
COMPLETION_STATUS

COMPLETION_STATUS_COMPLETED_ABNORMALLY

public static final java.lang.String COMPLETION_STATUS_COMPLETED_ABNORMALLY
Attribute value indicating that the job completed abnormally.
See Also:
COMPLETION_STATUS

CONTROLLED_END_REQUESTED

public static final java.lang.String CONTROLLED_END_REQUESTED
Attribute ID for controlled end requested. This identifies a read-only String attribute, which indicates whether or not the system issued a controlled cancelation. Possible values are:

CONTROLLED_END_REQUESTED_CANCELED

public static final java.lang.String CONTROLLED_END_REQUESTED_CANCELED
Attribute value indicating that the system, the subsystem in which the job is running, or the job itself is canceled.
See Also:
CONTROLLED_END_REQUESTED

CONTROLLED_END_REQUESTED_NOT_CANCELED

public static final java.lang.String CONTROLLED_END_REQUESTED_NOT_CANCELED
Attribute value indicating that the system, subsystem, or job is not canceled.
See Also:
CONTROLLED_END_REQUESTED

CONTROLLED_END_REQUESTED_NOT_RUNNING

public static final java.lang.String CONTROLLED_END_REQUESTED_NOT_RUNNING
Attribute value indicating that the job is not running.
See Also:
CONTROLLED_END_REQUESTED

COUNTRY_ID

public static final java.lang.String COUNTRY_ID
Attribute ID for country ID. This identifies a String attribute.

The following special values can be used when setting the country ID:


CPU_TIME_USED

public static final java.lang.String CPU_TIME_USED
Attribute ID for CPU time used. This identifies a read-only Integer attribute, which represents the amount of processing unit time (in milliseconds) that the job used.

CURRENT_LIBRARY

public static final java.lang.String CURRENT_LIBRARY
Attribute ID for current library. This identifies a read-only String attribute, which represents the name of the current library for the initial thread of the job.

CURRENT_LIBRARY_EXISTENCE

public static final java.lang.String CURRENT_LIBRARY_EXISTENCE
Attribute ID for current library existence. This identifies a read-only Boolean attribute, which indicates if a current library exists.

CURRENT_SYSTEM_POOL_ID

public static final java.lang.String CURRENT_SYSTEM_POOL_ID
Attribute ID for current system pool ID. This identifies a read-only Integer attribute, which represents the identifier of the system-related pool from which main storage is currently being allocated for the job's initial thread.

CURRENT_USER

public static final java.lang.String CURRENT_USER
Attribute ID for current user. This identifies a read-only String attribute, which represents the user profile under which the initial thread of the current job is running.

DATE_ENTERED_SYSTEM

public static final java.lang.String DATE_ENTERED_SYSTEM
Attribute ID for date entered system. This identifies a read-only Date attribute, which represents the date and time when the job was placed on the system. The Date value is converted using the default Java locale.

DATE_FORMAT

public static final java.lang.String DATE_FORMAT
Attribute ID for date format. This identifies a String attribute, which represents the format in which dates are presented. Possible values are:

The following special values can be used when setting the date format:


DATE_FORMAT_SYSTEM_VALUE

public static final java.lang.String DATE_FORMAT_SYSTEM_VALUE
Attribute value indicating that the system value QDATFMT is used.
See Also:
DATE_FORMAT

DATE_FORMAT_YMD

public static final java.lang.String DATE_FORMAT_YMD
Attribute value indicating the year, month, and day date format.
See Also:
DATE_FORMAT

DATE_FORMAT_MDY

public static final java.lang.String DATE_FORMAT_MDY
Attribute value indicating the month, day, and year date format.
See Also:
DATE_FORMAT

DATE_FORMAT_DMY

public static final java.lang.String DATE_FORMAT_DMY
Attribute value indicating the day, month, and year date format.
See Also:
DATE_FORMAT

DATE_FORMAT_JULIAN

public static final java.lang.String DATE_FORMAT_JULIAN
Attribute value indicating the Julian date format.
See Also:
DATE_FORMAT

DATE_SEPARATOR

public static final java.lang.String DATE_SEPARATOR
Attribute ID for date separator. This identifies a String attribute, which represents the value used to separate days, months, and years when presenting a date.

The following special value can be used when setting the date separator:


DATE_SEPARATOR_SYSTEM_VALUE

public static final java.lang.String DATE_SEPARATOR_SYSTEM_VALUE
Attribute value indicating that the system value QDATSEP is used.
See Also:
DATE_SEPARATOR

DATE_STARTED

public static final java.lang.String DATE_STARTED
Attribute ID for date started. This identifies a read-only Date attribute, which represents the date and time when the job began to run on the system. The Date value is converted using the default Java locale.

DBCS_CAPABLE

public static final java.lang.String DBCS_CAPABLE
Attribute ID for DBCS capable. This identifies a read-only Boolean attribute, which indicates whether the job is DBCS capable.

DECIMAL_FORMAT

public static final java.lang.String DECIMAL_FORMAT
Attribute ID for decimal format. This identifies a String attribute, which represents the decimal format used for this job. Possible values are:

The following special value can be used when setting the decimal separator:


DECIMAL_FORMAT_PERIOD

public static final java.lang.String DECIMAL_FORMAT_PERIOD
Attribute value indicating the date format that uses a period for a decimal point, a comma for a 3-digit grouping character, and zero-suppresses to the left of the decimal point.
See Also:
DECIMAL_FORMAT

DECIMAL_FORMAT_COMMA_I

public static final java.lang.String DECIMAL_FORMAT_COMMA_I
Attribute value indicating the date format that uses a comma for a decimal point and a period for a 3-digit grouping character. The zero-suppression character is in the second character (rather than the first) to the left of the decimal notation. Balances with zero values to the left of the comma are written with one leading zero.
See Also:
DECIMAL_FORMAT

DECIMAL_FORMAT_COMMA_J

public static final java.lang.String DECIMAL_FORMAT_COMMA_J
Attribute value indicating the date format that uses a comma for a decimal point, a period for a 3-digit grouping character, and zero-suppresses to the left of the decimal point.
See Also:
DECIMAL_FORMAT

DEFAULT_CCSID

public static final java.lang.String DEFAULT_CCSID
Attribute ID for default coded character set identifier (CCSID). This identifies a read-only Integer attribute, which represents the default CCSID for this job. The value will be 0 if the job is not active.

DEFAULT_WAIT_TIME

public static final java.lang.String DEFAULT_WAIT_TIME
Attribute ID for default wait time. This identifies an Integer attribute, which represents the default maximum time (in seconds) that a thread in the job waits for a system instruction. The value -1 means there is no maximum. The value 0 is not valid.

DEVICE_RECOVERY_ACTION

public static final java.lang.String DEVICE_RECOVERY_ACTION
Attribute ID for device recovery action. This identifies a String attribute, which represents the action taken for interactive jobs when an I/O error occurs for the job's requesting program device. Possible values are:

The following special values can be used when setting the device recovery action:


DEVICE_RECOVERY_ACTION_MESSAGE

public static final java.lang.String DEVICE_RECOVERY_ACTION_MESSAGE
Attribute value indicating the device recovery action that signals the I/O error message to the application and lets the application program perform error recovery.
See Also:
DEVICE_RECOVERY_ACTION

DEVICE_RECOVERY_ACTION_DISCONNECT_MESSAGE

public static final java.lang.String DEVICE_RECOVERY_ACTION_DISCONNECT_MESSAGE
Attribute value indicating the device recovery action that disconnects the job when an I/O error occurs.
See Also:
DEVICE_RECOVERY_ACTION

DEVICE_RECOVERY_ACTION_DISCONNECT_END_REQUEST

public static final java.lang.String DEVICE_RECOVERY_ACTION_DISCONNECT_END_REQUEST
Attribute value indicating the device recovery action that disconnects the job when an I/O error occurs. When the job reconnects, the system sends the End Request (ENDRQS) command to return control to the previous request level.
See Also:
DEVICE_RECOVERY_ACTION

DEVICE_RECOVERY_ACTION_END_JOB

public static final java.lang.String DEVICE_RECOVERY_ACTION_END_JOB
Attribute value indicating the device recovery action that ends the job when an I/O error occurs. A message is sent to the job's log and to the history log (QHST) indicating the job ended because of a device error.
See Also:
DEVICE_RECOVERY_ACTION

DEVICE_RECOVERY_ACTION_END_JOB_NO_LIST

public static final java.lang.String DEVICE_RECOVERY_ACTION_END_JOB_NO_LIST
Attribute value indicating the device recovery action that ends the job when an I/O error occurs. There is no job log produced for the job. The system sends a message to the QHST log indicating the job ended because of a device error.
See Also:
DEVICE_RECOVERY_ACTION

ELIGIBLE_FOR_PURGE

public static final java.lang.String ELIGIBLE_FOR_PURGE
Attribute ID for eligible for purge. This identifies a Boolean attribute, which indicates whether the job is eligible to be moved out of main storage and put into auxiliary storage at the end of a time slice or when it is beginning a long wait.

END_SEVERITY

public static final java.lang.String END_SEVERITY
Attribute ID for end severity. This identifies a read-only Integer attribute, which represents the message severity level of escape messages that can cause a batch job to end. The batch job ends when a request in the batch input stream sends an escape message, whose severity is equal to or greater than this value, to the request processing program.

FUNCTION_NAME

public static final java.lang.String FUNCTION_NAME
Attribute ID for function name. This identifies a read-only String attribute, which represents additional information about the function the initial thread is currently performing. This information is updated only when a command is processed.

FUNCTION_TYPE

public static final java.lang.String FUNCTION_TYPE
Attribute ID for function type. This identifies a read-only String attribute, which represents the high-level function type the initial thread is performing, if any. Possible values are:

FUNCTION_TYPE_BLANK

public static final java.lang.String FUNCTION_TYPE_BLANK
Attribute value indicating that the system is not performing a logged function.
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_COMMAND

public static final java.lang.String FUNCTION_TYPE_COMMAND
Attribute value indicating that a command is running interactively, or it is in a batch input stream, or it was requested from a system menu.
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_DELAY

public static final java.lang.String FUNCTION_TYPE_DELAY
Attribute value indicating that the initial thread of the job is processing a Delay Job (DLYJOB) command.
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_GROUP

public static final java.lang.String FUNCTION_TYPE_GROUP
Attribute value indicating that the Transfer Group Job (TFRGRPJOB) command suspended the job.
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_INDEX

public static final java.lang.String FUNCTION_TYPE_INDEX
Attribute value indicating that the initial thread of the job is rebuilding an index (access path).
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_LOG

public static final java.lang.String FUNCTION_TYPE_LOG
Attribute value indicating that the system logs history information in a database file.
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_MRT

public static final java.lang.String FUNCTION_TYPE_MRT
Attribute value indicating that the job is a multiple requester terminal (MRT) job is the job type is JOB_TYPE_BATCH and the job subtype is JOB_SUBTYPE_MRT, or it is an interactive job attached to an MRT job if the job type is JOB_TYPE_INTERACTIVE.
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_MENU

public static final java.lang.String FUNCTION_TYPE_MENU
Attribute value indicating that the initial thread of the job is currently at a system menu.
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_IO

public static final java.lang.String FUNCTION_TYPE_IO
Attribute value indicating that the job is a subsystem monitor that is performing input/output (I/O) operations to a work station.
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_PROGRAM

public static final java.lang.String FUNCTION_TYPE_PROGRAM
Attribute value indicating that the initial thread of the job is running a program.
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_PROCEDURE

public static final java.lang.String FUNCTION_TYPE_PROCEDURE
Attribute value indicating that the initial thread of the job is running a procedure.
See Also:
FUNCTION_TYPE

FUNCTION_TYPE_SPECIAL

public static final java.lang.String FUNCTION_TYPE_SPECIAL
Attribute value indicating that the function type is special.
See Also:
FUNCTION_TYPE

INQUIRY_MESSAGE_REPLY

public static final java.lang.String INQUIRY_MESSAGE_REPLY
Attribute ID for inquiry message reply. This identifies a String attribute, which represents how the job answers inquiry messages. Possible values are:

INQUIRY_MESSAGE_REPLY_REQUIRED

public static final java.lang.String INQUIRY_MESSAGE_REPLY_REQUIRED
Attribute value indicating that the job requires an answer for any inquiry messages that occur while this job is running.
See Also:
INQUIRY_MESSAGE_REPLY

INQUIRY_MESSAGE_REPLY_DEFAULT

public static final java.lang.String INQUIRY_MESSAGE_REPLY_DEFAULT
Attribute value indicating that the system uses the default message reply to answer any inquiry messages issued while this job is running. The default reply is either defined in the message description or is the default system reply.
See Also:
INQUIRY_MESSAGE_REPLY

INQUIRY_MESSAGE_REPLY_SYSTEM_REPLY_LIST

public static final java.lang.String INQUIRY_MESSAGE_REPLY_SYSTEM_REPLY_LIST
Attribute value indicating that the system reply list is checked to see if there is an entry for an inquiry message issued while this job is running. If a match occurs, the system uses the reply value for that entry. If no entry exists for that message, the system uses an inquiry message.
See Also:
INQUIRY_MESSAGE_REPLY

INSTANCE

public static final java.lang.String INSTANCE
Attribute ID for instance. This identifies a read-only byte[] attribute, which further identifies the source that originated the APPC job. This attribute is part of the unit of work ID, which is used to track jobs across multiple systems. This is applicable only when the job is associated with a source or target system using advanced program-to-program communications (APPC).

INTERACTIVE_TRANSACTIONS

public static final java.lang.String INTERACTIVE_TRANSACTIONS
Attribute ID for interactive transactions. This identifies a read-only Integer attribute, which represents the number of interactive transactions.

INTERNAL_JOB_ID

public static final java.lang.String INTERNAL_JOB_ID
Attribute ID for internal job identifier. This identifies a read-only byte array attribute, which represents the internal job identifier of the job as identified to the system.

JOB_DATE

public static final java.lang.String JOB_DATE
Attribute ID for job date. This identifies a Date attribute, which represents the date to be used for the job. The value NO_DATE indicates that the job uses the system date. The Date value is converted using the default Java locale.

JOB_DESCRIPTION

public static final java.lang.String JOB_DESCRIPTION
Attribute ID for job description. This identifies a read-only String attribute, which represents the fully qualified integrated file system path name of the job description.
See Also:
QSYSObjectPathName

JOB_NAME

public static final java.lang.String JOB_NAME
Attribute ID for job name. This identifies a read-only String attribute, which represents the name of the job as identified to the system.

JOB_NUMBER

public static final java.lang.String JOB_NUMBER
Attribute ID for job number. This identifies a read-only String attribute, which represents the system-generated job number.

JOB_QUEUE

public static final java.lang.String JOB_QUEUE
Attribute ID for job queue. This identifies a String attribute, which represents the fully qualified integrated file system path name of the job queue that the job is on, or that the job was on if it is currently active.
See Also:
QSYSObjectPathName

JOB_QUEUE_DATE

public static final java.lang.String JOB_QUEUE_DATE
Attribute ID for job queue date. This identifies a read-only Date attribute, which represents the date and time when the job was put on the job queue. The Date value is converted using the default Java locale.

JOB_QUEUE_PRIORITY

public static final java.lang.String JOB_QUEUE_PRIORITY
Attribute ID for job queue priority. This identifies an Integer attribute, which represents the scheduling priority of the job compared to other jobs on the same job queue. The highest priority is 0 and the lowest is 9.

JOB_QUEUE_STATUS

public static final java.lang.String JOB_QUEUE_STATUS
Attribute ID for job queue status. This identifies a read-only String attribute, which represents the status of the job on the job queue. Possible values are:

JOB_QUEUE_STATUS_BLANK

public static final java.lang.String JOB_QUEUE_STATUS_BLANK
Attribute value indicating that the job is not on a job queue.
See Also:
JOB_QUEUE_STATUS

JOB_QUEUE_STATUS_SCHEDULED

public static final java.lang.String JOB_QUEUE_STATUS_SCHEDULED
Attribute value indicating that the job will run as scheduled.
See Also:
JOB_QUEUE_STATUS

JOB_QUEUE_STATUS_HELD

public static final java.lang.String JOB_QUEUE_STATUS_HELD
Attribute value indicating that the job is being held on the job queue.
See Also:
JOB_QUEUE_STATUS

JOB_QUEUE_STATUS_RELEASED

public static final java.lang.String JOB_QUEUE_STATUS_RELEASED
Attribute value indicating that the job is ready to be selected.
See Also:
JOB_QUEUE_STATUS

JOB_STATUS

public static final java.lang.String JOB_STATUS
Attribute ID for job status. This identifies a read-only String attribute, which represents the status of the job. Possible values are:

JOB_STATUS_ACTIVE

public static final java.lang.String JOB_STATUS_ACTIVE
Attribute value indicating that the job is active.
See Also:
JOB_STATUS

JOB_STATUS_JOBQ

public static final java.lang.String JOB_STATUS_JOBQ
Attribute value indicating that the job is currently on a job queue.
See Also:
JOB_STATUS

JOB_STATUS_OUTQ

public static final java.lang.String JOB_STATUS_OUTQ
Attribute value indicating that the job has completed running.
See Also:
JOB_STATUS

JOB_SUBTYPE

public static final java.lang.String JOB_SUBTYPE
Attribute ID for job subtype. This identifies a read-only String attribute, which represents additional information about the job type. Possible values are:

JOB_SUBTYPE_BLANK

public static final java.lang.String JOB_SUBTYPE_BLANK
Attribute value indicating that the job has no special subtype or is not a valid job.
See Also:
JOB_SUBTYPE

JOB_SUBTYPE_IMMEDIATE

public static final java.lang.String JOB_SUBTYPE_IMMEDIATE
Attribute value indicating that the job is an immediate job.
See Also:
JOB_SUBTYPE

JOB_SUBTYPE_PROCEDURE_START_REQUEST

public static final java.lang.String JOB_SUBTYPE_PROCEDURE_START_REQUEST
Attribute value indicating that the job started with a procedure start request.
See Also:
JOB_SUBTYPE

JOB_SUBTYPE_MACHINE_SERVER_JOB

public static final java.lang.String JOB_SUBTYPE_MACHINE_SERVER_JOB
Attribute value indicating that the job is an AS/400 Advanced 36 machine server job.
See Also:
JOB_SUBTYPE

JOB_SUBTYPE_PRESTART

public static final java.lang.String JOB_SUBTYPE_PRESTART
Attribute value indicating that the job is a prestart job.
See Also:
JOB_SUBTYPE

JOB_SUBTYPE_PRINT_DRIVER

public static final java.lang.String JOB_SUBTYPE_PRINT_DRIVER
Attribute value indicating that the job is a print driver job.
See Also:
JOB_SUBTYPE

JOB_SUBTYPE_MRT

public static final java.lang.String JOB_SUBTYPE_MRT
Attribute value indicating that the job is a System/36 multiple requester terminal (MRT) job.
See Also:
JOB_SUBTYPE

JOB_SUBTYPE_ALTERNATE_SPOOL_USER

public static final java.lang.String JOB_SUBTYPE_ALTERNATE_SPOOL_USER
Attribute value indicating alternate spool user.
See Also:
JOB_SUBTYPE

JOB_SWITCHES

public static final java.lang.String JOB_SWITCHES
Attribute ID for switch settings. This identifies a String attribute, which represents the current setting of the job switches used by this job.

JOB_TYPE

public static final java.lang.String JOB_TYPE
Attribute ID for job type. This identifies a read-only String attribute, which represents the job type. Possible values are:

JOB_TYPE_NOT_VALID

public static final java.lang.String JOB_TYPE_NOT_VALID
Attribute value indicating that the job is not a valid job.
See Also:
JOB_TYPE

JOB_TYPE_AUTOSTART

public static final java.lang.String JOB_TYPE_AUTOSTART
Attribute value indicating that the job is an autostart job.
See Also:
JOB_TYPE

JOB_TYPE_BATCH

public static final java.lang.String JOB_TYPE_BATCH
Attribute value indicating that the job is a batch job.
See Also:
JOB_TYPE

JOB_TYPE_INTERACTIVE

public static final java.lang.String JOB_TYPE_INTERACTIVE
Attribute value indicating that the job is an interactive job.
See Also:
JOB_TYPE

JOB_TYPE_SUBSYSTEM_MONITOR

public static final java.lang.String JOB_TYPE_SUBSYSTEM_MONITOR
Attribute value indicating that the job is a subsystem monitor job.
See Also:
JOB_TYPE

JOB_TYPE_SPOOLED_READER

public static final java.lang.String JOB_TYPE_SPOOLED_READER
Attribute value indicating that the job is a spooled reader job.
See Also:
JOB_TYPE

JOB_TYPE_SYSTEM

public static final java.lang.String JOB_TYPE_SYSTEM
Attribute value indicating that the job is a system job.
See Also:
JOB_TYPE

JOB_TYPE_SPOOLED_WRITER

public static final java.lang.String JOB_TYPE_SPOOLED_WRITER
Attribute value indicating that the job is a spooled writer job.
See Also:
JOB_TYPE

JOB_TYPE_SCPF_SYSTEM

public static final java.lang.String JOB_TYPE_SCPF_SYSTEM
Attribute value indicating that the job is the SCPF system job.
See Also:
JOB_TYPE

KEEP_DDM_CONNECTIONS_ACTIVE

public static final java.lang.String KEEP_DDM_CONNECTIONS_ACTIVE
Attribute ID for keep DDM connections active. This identifies a String attribute, which represents whether connections using distributed data management (DDM) protocols remain active when they are not being used. Possible values are:

KEEP_DDM_CONNECTIONS_ACTIVE_KEEP

public static final java.lang.String KEEP_DDM_CONNECTIONS_ACTIVE_KEEP
Attribute value indicating that the system keeps DDM connections active when there are no users.
See Also:
KEEP_DDM_CONNECTIONS_ACTIVE

KEEP_DDM_CONNECTIONS_ACTIVE_DROP

public static final java.lang.String KEEP_DDM_CONNECTIONS_ACTIVE_DROP
Attribute value indicating that the system ends a DDM connection when there are no users.
See Also:
KEEP_DDM_CONNECTIONS_ACTIVE

LANGUAGE_ID

public static final java.lang.String LANGUAGE_ID
Attribute ID for language ID. This identifies a String attribute, which represents the language identifier associated with this job.

The following special values can be used when setting the language ID:


LOCATION_NAME

public static final java.lang.String LOCATION_NAME
Attribute ID for location name. This identifies a read-only String attribute, which represents the name of the source system that originated the APPC job. This attribute is part of the unit of work ID, which is used to track jobs across multiple systems. This is applicable only when the job is associated with a source or target system using advanced program-to-program communications (APPC).

LOG_CL_PROGRAMS

public static final java.lang.String LOG_CL_PROGRAMS
Attribute ID for logging CL programs. This identifies a Boolean attribute, which indicates whether messages are logged for CL programs.

LOGGING_LEVEL

public static final java.lang.String LOGGING_LEVEL
Attribute ID for logging level. This identifies a String attribute, which represents the type of information that is logged. Possible values are:

LOGGING_LEVEL_NONE

public static final java.lang.String LOGGING_LEVEL_NONE
Attribute value indicating that no messages are logged.
See Also:
LOGGING_LEVEL

LOGGING_LEVEL_MESSAGES_BY_SEVERITY

public static final java.lang.String LOGGING_LEVEL_MESSAGES_BY_SEVERITY
Attribute value indicating that all messages sent to the job's external message queue with a severity greater than or equal to the message logging severity are logged.
See Also:
LOGGING_LEVEL

LOGGING_LEVEL_REQUESTS_BY_SEVERITY_AND_ASSOCIATED_MESSAGES

public static final java.lang.String LOGGING_LEVEL_REQUESTS_BY_SEVERITY_AND_ASSOCIATED_MESSAGES
Attribute value indicating that requests or commands from CL programs for which the system issues messages with a severity code greater than or equal to the logging severity and all messages associated with those requests or commands that have a severity code greater than or equal to the logging severity are logged.
See Also:
LOGGING_LEVEL

LOGGING_LEVEL_ALL_REQUESTS_AND_ASSOCIATED_MESSAGES

public static final java.lang.String LOGGING_LEVEL_ALL_REQUESTS_AND_ASSOCIATED_MESSAGES
Attribute value indicating that all requests or commands from CL programs and all messages associated with those requests or commands that have a severity code greater than or equal to the logging severity are logged.
See Also:
LOGGING_LEVEL

LOGGING_LEVEL_ALL_REQUESTS_AND_MESSAGES

public static final java.lang.String LOGGING_LEVEL_ALL_REQUESTS_AND_MESSAGES
Attribute value indicating that all requests or commands from CL programs and all messages with a severity code greater than or equal to the logging severity are logged.
See Also:
LOGGING_LEVEL

LOGGING_SEVERITY

public static final java.lang.String LOGGING_SEVERITY
Attribute ID for logging severity. This identifies an Integer attribute, which represents the minimum severity level that causes error messages to be logged in the job log.

LOGGING_TEXT

public static final java.lang.String LOGGING_TEXT
Attribute ID for logging text. This identifies a String attribute, which represents the level of message text that is written in the job log or displayed to the user. Possible values are:

LOGGING_TEXT_MESSAGE

public static final java.lang.String LOGGING_TEXT_MESSAGE
Attribute value indicating that only the message is written to the job log.
See Also:
LOGGING_TEXT

LOGGING_TEXT_SECLVL

public static final java.lang.String LOGGING_TEXT_SECLVL
Attribute value indicating that both the message and the message help for the error message are written to the job log.
See Also:
LOGGING_TEXT

LOGGING_TEXT_NO_LIST

public static final java.lang.String LOGGING_TEXT_NO_LIST
Attribute value indicating that if the job ends normally, there is no job log. If the job ends abnormally, there is a job log. The messages appearing in the job log contain both the message and the message help.
See Also:
LOGGING_TEXT

MAX_CPU_TIME

public static final java.lang.String MAX_CPU_TIME
Attribute ID for maximum CPU time. This identifies a read-only Integer attribute, which represents the maximum processing unit time (in milliseconds) that the job can use. If the job consists of multiple routing steps, this is the maximum processing unit time that the current routing step can use. If the maximum time is exceeded, the job is ended. A value of -1 indicates that there is no maximum. A value of 0 indicates that the job is not active.

MAX_TEMP_STORAGE

public static final java.lang.String MAX_TEMP_STORAGE
Attribute ID for maximum temporary storage. This identifies a read-only Integer attribute, which represents the maximum amount of auxiliary storage (in megabytes) that the job can use. If the job consists of multiple routing steps, this is the maximum temporary storage that the current routing step can use. If the maximum temporary storage is exceeded, the job is ended. This does not apply to the use of permanent storage, which is controlled through the user profile. A value of -1 indicates that there is no maximum.

MESSAGE_QUEUE_ACTION

public static final java.lang.String MESSAGE_QUEUE_ACTION
Attribute ID for message queue action. This identifies a String attribute, which represents the action to take when the message queue is full. Possible values are:

MESSAGE_QUEUE_ACTION_NO_WRAP

public static final java.lang.String MESSAGE_QUEUE_ACTION_NO_WRAP
Attribute value indicating that the message queue does not wrap. This action causes the job to end when the message queue is full.
See Also:
MESSAGE_QUEUE_ACTION

MESSAGE_QUEUE_ACTION_WRAP

public static final java.lang.String MESSAGE_QUEUE_ACTION_WRAP
Attribute value indicating that the message queue wraps to the beginning and starts filling again when the message queue is full.
See Also:
MESSAGE_QUEUE_ACTION

MESSAGE_QUEUE_ACTION_PRINT_WRAP

public static final java.lang.String MESSAGE_QUEUE_ACTION_PRINT_WRAP
Attribute value indicating that the message queue wraps and prints the messages that are being overlaid because of the wrapping.
See Also:
MESSAGE_QUEUE_ACTION

MESSAGE_QUEUE_MAX_SIZE

public static final java.lang.String MESSAGE_QUEUE_MAX_SIZE
Attribute ID for message queue maximum size. This identifies a read-only Integer attribute, which represents the maximum size (in megabytes) of the job's message queue. The range is 2 to 64.

MODE

public static final java.lang.String MODE
Attribute ID for mode. This identifies a read-only String attribute, which represents the mode name of the advanced program-to-program communications (APPC) device that started the job.

NETWORK_ID

public static final java.lang.String NETWORK_ID
Attribute ID for network ID. This identifies a read-only String attribute, which represents the network name. This attribute is part of the unit of work ID, which is used to track jobs across multiple systems. This is applicable only when the job is associated with a source or target system using advanced program-to-program communications (APPC).

OUTPUT_QUEUE

public static final java.lang.String OUTPUT_QUEUE
Attribute ID for output queue. This identifies a String attribute, which represents the fully qualified integrated file system path name of the default output queue that is used for spooled output produced by this job.
See Also:
QSYSObjectPathName

OUTPUT_QUEUE_PRIORITY

public static final java.lang.String OUTPUT_QUEUE_PRIORITY
Attribute ID for output queue priority. This identifies an Integer attribute, which represents the output priority for spooled output files that this job produces. The highest priority is 0 and the lowest is 9.

PRINT_KEY_FORMAT

public static final java.lang.String PRINT_KEY_FORMAT
Attribute ID for print key format. This identifies a String attribute, which represents whether border and header information is provided when the Print key is pressed. Possible values are:

The following special value can be used when setting the print key format:


PRINT_KEY_FORMAT_BORDER

public static final java.lang.String PRINT_KEY_FORMAT_BORDER
Attribute value indicating that the border information is included with output from the Print key.
See Also:
PRINT_KEY_FORMAT

PRINT_KEY_FORMAT_HEADER

public static final java.lang.String PRINT_KEY_FORMAT_HEADER
Attribute value indicating that the header information is included with output from the Print key.
See Also:
PRINT_KEY_FORMAT

PRINT_KEY_FORMAT_ALL

public static final java.lang.String PRINT_KEY_FORMAT_ALL
Attribute value indicating that the border and header information is included with output from the Print key.
See Also:
PRINT_KEY_FORMAT

PRINT_TEXT

public static final java.lang.String PRINT_TEXT
Attribute ID for print text. This identifies a String attribute, which represents the line of text, if any, that is printed at the bottom of each page of printed output for the job.

The following special value can be used when setting the print key format:


PRINTER_DEVICE_NAME

public static final java.lang.String PRINTER_DEVICE_NAME
Attribute ID for printer device name. This identifies a String attribute, which represents the printer device used for printing output from this job.

The following special values can be used when setting the printer:


PRINTER_DEVICE_NAME_WORK_STATION

public static final java.lang.String PRINTER_DEVICE_NAME_WORK_STATION
Attribute value indicating that the default printer device used with this job is the printer device assigned to the work station that is associated with the job.
See Also:
PRINTER_DEVICE_NAME

PRODUCT_LIBRARIES

public static final java.lang.String PRODUCT_LIBRARIES
Attribute ID for product libraries. This identifies a read-only String[] attribute, which represents the libraries that contain product information for the initial thread of this job.

PRODUCT_RETURN_CODE

public static final java.lang.String PRODUCT_RETURN_CODE
Attribute ID for product return code. This identifies a read-only Integer attribute, which represents the return code set by the compiler for Integrated Language Environment (ILE) languages.

PROGRAM_RETURN_CODE

public static final java.lang.String PROGRAM_RETURN_CODE
Attribute ID for program return code. This identifies a read-only Integer attribute, which represents the completion status of the last RPG, COBOL, data file utility (DFU), or sort utility program that has finished running.

ROUTING_DATA

public static final java.lang.String ROUTING_DATA
Attribute ID for routing data. This identifies a read-only String attribute, which represents the routing data that is used to determine the routing entry that identifies the program to start for the routing step.

RUN_PRIORITY

public static final java.lang.String RUN_PRIORITY
Attribute ID for run priority. This identifies an Integer attribute, which represents the priority at which the job is currently running, relative to other jobs on the system. The run priority ranges from 1 (highest priority) to 99 (lowest priority).

SCHEDULE_DATE

public static final java.lang.String SCHEDULE_DATE
Attribute ID for schedule date. This identifies a Date attribute, which represents the date and time the job is scheduled to become active. The Date value is converted using the default Java locale.

The following special values can be used when setting the schedule date:


SCHEDULE_DATE_CURRENT

public static final java.util.Date SCHEDULE_DATE_CURRENT
Attribute value indicating that the submitted job becomes eligible to run at the current date.
See Also:
SCHEDULE_DATE

SCHEDULE_DATE_MONTH_START

public static final java.util.Date SCHEDULE_DATE_MONTH_START
Attribute value indicating that the submitted job becomes eligible to run on the first day of the month.
See Also:
SCHEDULE_DATE

SCHEDULE_DATE_MONTH_END

public static final java.util.Date SCHEDULE_DATE_MONTH_END
Attribute value indicating that the submitted job becomes eligible to run on the last day of the month.
See Also:
SCHEDULE_DATE

SCHEDULE_DATE_MONDAY

public static final java.util.Date SCHEDULE_DATE_MONDAY
Attribute value indicating that the submitted job becomes eligible to run on Monday.
See Also:
SCHEDULE_DATE

SCHEDULE_DATE_TUESDAY

public static final java.util.Date SCHEDULE_DATE_TUESDAY
Attribute value indicating that the submitted job becomes eligible to run on Tuesday.
See Also:
SCHEDULE_DATE

SCHEDULE_DATE_WEDNESDAY

public static final java.util.Date SCHEDULE_DATE_WEDNESDAY
Attribute value indicating that the submitted job becomes eligible to run on Wednesday.
See Also:
SCHEDULE_DATE

SCHEDULE_DATE_THURSDAY

public static final java.util.Date SCHEDULE_DATE_THURSDAY
Attribute value indicating that the submitted job becomes eligible to run on Thursday.
See Also:
SCHEDULE_DATE

SCHEDULE_DATE_FRIDAY

public static final java.util.Date SCHEDULE_DATE_FRIDAY
Attribute value indicating that the submitted job becomes eligible to run on Friday.
See Also:
SCHEDULE_DATE

SCHEDULE_DATE_SATURDAY

public static final java.util.Date SCHEDULE_DATE_SATURDAY
Attribute value indicating that the submitted job becomes eligible to run on Saturday.
See Also:
SCHEDULE_DATE

SCHEDULE_DATE_SUNDAY

public static final java.util.Date SCHEDULE_DATE_SUNDAY
Attribute value indicating that the submitted job becomes eligible to run on Sunday.
See Also:
SCHEDULE_DATE

SEQUENCE_NUMBER

public static final java.lang.String SEQUENCE_NUMBER
Attribute ID for sequence number. This identifies a read-only String attribute, which represents the sequence number. This attribute is part of the unit of work ID, which is used to track jobs across multiple systems. This is applicable only when the job is associated with a source or target system using advanced program-to-program communications (APPC).

SERVER_TYPE

public static final java.lang.String SERVER_TYPE
Attribute ID for server type. This identifies a read-only String attribute, which represents the type of server represented by the job, if the job is part of a server.

SIGNED_ON_JOB

public static final java.lang.String SIGNED_ON_JOB
Attribute ID for signed on job. This identifies a read-only Boolean attribute, which indicates whether the job is to be treated like a signed-on user on the system.

SORT_SEQUENCE_TABLE

public static final java.lang.String SORT_SEQUENCE_TABLE
Attribute ID for sort sequence table. This identifies a String attribute, which represents the fully qualified integrated file system path name of the sort sequence table.
See Also:
QSYSObjectPathName

SPECIAL_ENVIRONMENT

public static final java.lang.String SPECIAL_ENVIRONMENT
Attribute ID for special environment. This identifies a read-only String attribute, which indicates whether the job is running in a particular environment. Possible values are:

SPECIAL_ENVIRONMENT_SYSTEM_36

public static final java.lang.String SPECIAL_ENVIRONMENT_SYSTEM_36
Attribute value indicating that the job is running in the System/36 environment.
See Also:
SPECIAL_ENVIRONMENT

SPECIAL_ENVIRONMENT_NOT_ACTIVE

public static final java.lang.String SPECIAL_ENVIRONMENT_NOT_ACTIVE
Attribute value indicating that the job is not currently active.
See Also:
SPECIAL_ENVIRONMENT

STATUS_MESSAGE_HANDLING

public static final java.lang.String STATUS_MESSAGE_HANDLING
Attribute ID for status message handling. This identifies a String attribute, which indicates whether status messages are displayed for this job. Possible values are:

The following special values can be used when setting the status message handling:


STATUS_MESSAGE_HANDLING_NORMAL

public static final java.lang.String STATUS_MESSAGE_HANDLING_NORMAL
Attribute value indicating that this job displays status messages.
See Also:
STATUS_MESSAGE_HANDLING

SUBMITTED_BY_JOB_NAME

public static final java.lang.String SUBMITTED_BY_JOB_NAME
Attribute ID for submitted by job name. This identifies a read-only String attribute, which represents the job name of the submitter's job.

SUBMITTED_BY_JOB_NUMBER

public static final java.lang.String SUBMITTED_BY_JOB_NUMBER
Attribute ID for submitted by job number. This identifies a read-only String attribute, which represents the job number of the submitter's job.

SUBMITTED_BY_USER

public static final java.lang.String SUBMITTED_BY_USER
Attribute ID for submitted by user. This identifies a read-only String attribute, which represents the user name of the submitter's job.

SUBSYSTEM

public static final java.lang.String SUBSYSTEM
Attribute ID for subsystem. This identifies a read-only String attribute, which represents the fully qualified integrated file system path name of the subsystem in which an active job is running.
See Also:
QSYSObjectPathName

SYSTEM_LIBRARY_LIST

public static final java.lang.String SYSTEM_LIBRARY_LIST
Attribute ID for system library list. This identifies a read-only String[] attribute, which represents the system portion of the library list of the initial thread.

SYSTEM_POOL_ID

public static final java.lang.String SYSTEM_POOL_ID
Attribute ID for system pool ID. This identifies a read-only Integer attribute, which represents the identifier of the system-related pool from which the job's main storage is allocated.

TEMP_STORAGE_USED

public static final java.lang.String TEMP_STORAGE_USED
Attribute ID for temporary storage used. This identifies a read-only Integer attribute, which represents the amount of auxiliary storage (in megabytes) that is currently allocated to this job.

THREAD_COUNT

public static final java.lang.String THREAD_COUNT
Attribute ID for thread count. This identifies a read-only Integer attribute, which represents the current number of active threads in the process.

TIME_SEPARATOR

public static final java.lang.String TIME_SEPARATOR
Attribute ID for time separator. This identifies a String attribute, which represents the value used to separate hours, minutes, and seconds when presenting a time.

The following special value can be used when setting the time separator:


TIME_SEPARATOR_SYSTEM_VALUE

public static final java.lang.String TIME_SEPARATOR_SYSTEM_VALUE
Attribute value indicating that the system value QTIMSEP is used.
See Also:
TIME_SEPARATOR

TIME_SLICE

public static final java.lang.String TIME_SLICE
Attribute ID for time slice. This identifies an Integer attribute, which represents the maximum amount of processor time (in milliseconds) given to each thread in this job before other threads in this job and in other jobs are given the opportunity to run.

TIME_SLICE_END_POOL

public static final java.lang.String TIME_SLICE_END_POOL
Attribute ID for time slice end pool. This identifies a String attribute, which indicates whether a thread in an interactive job moves to another main storage pool at the end of its time slice. Possible values are:

The following special value can be used when setting the time slice end pool:


TIME_SLICE_END_POOL_BASE

public static final java.lang.String TIME_SLICE_END_POOL_BASE
Attribute value indicating that a thread in the job moves to the base pool when it reaches the end of its time slice.
See Also:
TIME_SLICE_END_POOL

TOTAL_RESPONSE_TIME

public static final java.lang.String TOTAL_RESPONSE_TIME
Attribute ID for total response time. This identifies a read-only Integer attribute, which represents the total amount of response time (in milliseconds) for the initial thread.

USER_LIBRARY_LIST

public static final java.lang.String USER_LIBRARY_LIST
Attribute ID for user library list. This identifies a read-only String[] attribute, which represents the user portion of the library list of the initial thread.

USER_NAME

public static final java.lang.String USER_NAME
Attribute ID for user name. This identifies a read-only String attribute, which represents the user name of the job, which is the same as the name of the user profile under which the job was started.

USER_RETURN_CODE

public static final java.lang.String USER_RETURN_CODE
Attribute ID for user return code. This identifies a read-only Integer attribute, which represents the user-defined return code set by ILE high-level language constructs.
Constructor Detail

RJob

public RJob()
Constructs an RJob object.

RJob

public RJob(AS400 system)
Constructs an RJob object.
Parameters:
system - The system.

RJob

public RJob(AS400 system,
            java.lang.String name,
            java.lang.String user,
            java.lang.String number)
Constructs an RJob object.
Parameters:
system - The system.
name - The job name. Specify "*" to indicate the default job.
user - The user name. This must be blank if name is "*".
number - The job number. This must be blank if name is "*".

RJob

public RJob(AS400 system,
            byte[] internalJobID)
Constructs an RJob object. This sets the job name to "*INT".
Parameters:
system - The system.
internalJobID - The internal job identifier.
Method Detail

commitAttributeChanges

protected void commitAttributeChanges(java.lang.Object[] attributeIDs,
                                      java.lang.Object[] values,
                                      int[] bidiStringTypes)
                               throws ResourceException
Commits the specified attribute changes.
Overrides:
commitAttributeChanges in class ChangeableResource
Parameters:
attributeIDs - The attribute IDs for the specified attribute changes.
values - The specified attribute changes
bidiStringTypes - The bidi string types as defined by the CDRA (Character Data Representataion Architecture). See BidiStringType for more information and valid values.
Throws:
ResourceException - If an error occurs.

createResource

public void createResource(java.lang.Object[] attributeIDs,
                           java.lang.Object[] values)
                    throws ResourceException
Creates the resource using the specified attribute values. This method is not supported for this class and always throws a ResourceException.
Throws:
ResourceException - If an error occurs.

end

public void end()
         throws ResourceException
Ends the job controlled. The program running in the job is allowed to perform some cleanup and end of job processing.
Throws:
ResourceException - If an error occurs.

end

public void end(int delayTime)
         throws ResourceException
Ends the job.
Parameters:
delayTime - The amount of time (in seconds) allowed for the job to complete its cleanup and end of job processing during a controlled end. If the cleanup is not completed before the end of the delay time, the job is ended immediately. Specify 0 to end the job immediately.
Throws:
ResourceException - If an error occurs.

establishConnection

protected void establishConnection()
                            throws ResourceException
Establishes the connection to the AS/400.

The method is called by the resource framework automatically when the connection needs to be established.

Overrides:
establishConnection in class Resource
Throws:
ResourceException - If an error occurs.

freezeProperties

protected void freezeProperties()
                         throws ResourceException
Freezes any property changes. After this is called, property changes should not be made. Properties are not the same thing as attributes. Properties are basic pieces of information which must be set to make the object usable, such as the system, job name, job number, and user name.

The method is called by the resource framework automatically when the properties need to be frozen.

Overrides:
freezeProperties in class Resource
Throws:
ResourceException - If an error occurs.

getAttributeUnchangedValue

public java.lang.Object getAttributeUnchangedValue(java.lang.Object attributeID,
                                                   int bidiStringType)
                                            throws ResourceException
Returns the unchanged value of an attribute. If the attribute value has an uncommitted change, this returns the unchanged value. If the attribute value does not have an uncommitted change, this returns the same value as getAttributeValue().
Overrides:
getAttributeUnchangedValue in class ChangeableResource
Parameters:
attributeID - Identifies the attribute.
bidiStringType - The bidi string type as defined by the CDRA (Character Data Representataion Architecture). See BidiStringType for more information and valid values.
Returns:
The attribute value, or null if the attribute value is not available.
Throws:
ResourceException - If an error occurs.

getInternalJobID

public byte[] getInternalJobID()
Returns the internal job identifier.
Returns:
The internal job identifier, or null if none has been set.

getName

public java.lang.String getName()
Returns the job name.
Returns:
The job name, or "*" if none has been set.

getNumber

public java.lang.String getNumber()
Returns the job number.
Returns:
The job number, or "" if none has been set.

getUser

public java.lang.String getUser()
Returns the user name.
Returns:
The user name, or "" if none has been set.

isBidiEnabled

protected boolean isBidiEnabled()
Indicates if this resource is enabled for bidirectional character conversion. This always returns true.
Overrides:
isBidiEnabled in class Resource
Returns:
Always true.

refreshAttributeValues

public void refreshAttributeValues()
                            throws ResourceException
Refreshes the values for all attributes. This does not cancel uncommitted changes. This method fires an attributeValuesRefreshed() ResourceEvent.
Overrides:
refreshAttributeValues in class ChangeableResource
Throws:
ResourceException - If an error occurs.

setInternalJobID

public void setInternalJobID(byte[] internalJobID)
                      throws java.beans.PropertyVetoException
Sets the internal job identifier. This does not change the job on the AS/400. Instead, it changes the job that this object references. The job name must be set to "*INT" for this to be recognized. This cannot be changed if the object has established a connection to the AS/400.
Parameters:
internalJobID - The internal job identifier.
Throws:
java.beans.PropertyVetoException - If the property change is vetoed.

setName

public void setName(java.lang.String name)
             throws java.beans.PropertyVetoException
Sets the job name. This does not change the job on the AS/400. Instead, it changes the job that this object references. This cannot be changed if the object has established a connection to the AS/400.
Parameters:
name - The job name. Specify "*" to indicate the job this program running in, or "*INT" to indicate that the job is specified using the internal job identifier.
Throws:
java.beans.PropertyVetoException - If the property change is vetoed.

setNumber

public void setNumber(java.lang.String number)
               throws java.beans.PropertyVetoException
Sets the job number. This does not change the job on the AS/400. Instead, it changes the job that this object references. This cannot be changed if the object has established a connection to the AS/400.
Parameters:
number - The job number. This must be blank if the job name is "*".
Throws:
java.beans.PropertyVetoException - If the property change is vetoed.

setUser

public void setUser(java.lang.String user)
             throws java.beans.PropertyVetoException
Sets the user name. This does not change the job on the AS/400. Instead, it changes the job that this object references. This cannot be changed if the object has established a connection to the AS/400.
Parameters:
user - The user name. This must be blank if the job name is "*".
Throws:
java.beans.PropertyVetoException - If the property change is vetoed.

toString

public java.lang.String toString()
Returns the string representation in the format "number/user/name".
Overrides:
toString in class Resource
Returns:
The string representation.