Jobs
Every component in JAMS supports or controls how a Job is defined or run. A JAMS Job includes Properties that modify how and when it should run, as well as actions that should be taken when the Job finishes. A JAMS Job may be configured to ensure that it executes at the right time and under the proper conditions.
Jobs Screen
You can create, modify, or delete Jobs from the Jobs screen. The Jobs screen displays the Folder Navigator and Job Definitions. For each Job, you can view the following information by default:
- Job Name – The name to identify the Job.
- Enabled – The true or false setting to indicate if the Job can run automatically.
- Description – The optional description to provide more information about the Job.
- Method Name – The type of Execution Method that was selected for the Job.
- Agent Name – The Agent that will be used to run the Job.
- Execute As – The username that will be used to run the Job.
- Last Change UTC - The date and time the Job was last changed based on UTC time.
- Last Changed By – The user account that made the last change to the Job.
Adding a Job
- Click Jobs from the main menu.
- Select a Folder from the Folder Navigator.
- Click Add from the top panel.
- In the Job Name field, enter a name for the new Job.
- In the Execution Method field, select an Execution Method for the Job from the drop-down list.
- If desired, give the Job a description.
- Click Save and Continue to Edit.
- Define the Job Source, Properties, and Security as desired.
- When the Job has been configured as desired, click Save.
Searching for a Job by Name
The Job Search option lets you quickly locate a Job by entering a partial or full name, without manually expanding Folders or scrolling through the Job list. From the search results, you can navigate directly to a Job's edit page to view or modify it.
- Click Jobs from the main menu.
- Click Search Job Names in the toolbar at the top of screen.
- In the Filter field, enter the Job name and then click the magnifying glass icon .
If the Job is found, it is displayed with its Folder path. - Select the Job and click EDIT JOB. The Summary tab for the Job Definition is displayed.
- Make any edits as needed.
- Click Save.
Modifying a Job
-
Click Jobs from the main menu.
-
Find the Job by selecting a Folder from the Folder Navigator or by using the Search Job Names option to search for the Job.
-
Open the Job by doing one of the following:
- Click the name of the Job.
- Select the Job and then click Properties from the top panel.
- Select the Job and then click Properties from the Actions menu.
-
Modify the Job, Source, Properties, and Security as desired.
-
When the Job has been reconfigured as desired, click Save.
Deleting a Job
-
Click Jobs from the main menu.
-
Find the Job by selecting a Folder from the Folder Navigator or by using the Search Job Names option to search for the Job.
-
Delete the Job by doing one of the following:
- Select the Job and then click Delete from the top panel.
- Select the Job and then click Delete from the Actions menu.
-
When you are prompted to confirm the deletion, click Delete.
Manually Submitting a Job to Run
You can manually submit a Job to run from the Jobs screen. See Manually Submitting Jobs for more information.
Job Definition Tabs
When you click a Job to open its properties, the Job has a standard set of tabs. Each tab is listed below.
Summary
This tab includes basic Job information:
- Folder – This property displays the name of the Folder where the Job is saved.
- Job Name – This property displays the identifier for a JAMS Job and is like the filename for a command file. Please note the Job name must be unique to the Folder where it is saved.
- Execution Method – This property displays the Execution Method that was selected for the Job.
- Description – This optional property appears in menus, lists, and reports and provides a more detailed explanation for the current Job.
- Last Change UTC – This property displays the date and time in UTC when the Job was last changed.
Source
You can view or edit the source for the current Job. The Execution Method defines the type of interface that is displayed in this tab. The Source of a Job in JAMS can be a source code editor containing any number of code languages or a fill-in-the-blank style form. The source for many Execution Methods will be a source code editor that supports syntax highlighting and code coloring to enhance the readability of scripts.
Variable and Parameter references may be embedded in the Job's command file. This variable data can come from the Job's Parameters, JAMS Variables, or JAMS Predefined Symbols.
Properties
A list of Properties is available below. These properties are available on any JAMS Job. Additional Properties may be available depending on a Job's Execution Method.
Until a value is set for a property, it will not display in the Properties tab. To display a property, use the ADD button in the Properties tab, select the desired Property, and then click Add in the Add Properties dialog.
| Status | Description |
|---|---|
| Enabled | Select or clear the checkbox to enable or disable the property. |
| Schedule | Description |
|---|---|
| Agent | This property specifies the Agent where the Job will execute when the Job is submitted. |
| Batch Queue | This property specifies the Batch Queue that will be used when this Job is scheduled. |
| Calendar | This property specifies the Calendar to use for scheduling. When a Calendar is listed, the Job will have access to the Date Types, such as holidays, in the Calendar. |
| Retry Count | This property specifies the maximum number of retry attempts if the Job fails. |
| Retry Interval | This property specifies the time interval, in Delta Time, between automatic retry attempts. |
| Scheduling Priority | This property specifies the priority the Scheduler uses in determining when to start executing Jobs that are waiting on prerequisites. The first number indicates the inherited value from the parent object. (The default is 0.) |
| Default Submit Date | This property specifies the submit date used when the Job is manually submitted. |
| Default Submit Time | This property specifies the submit time used when the Job is manually submitted. |
| Restartable | This property defines if the Job can be restarted after a failure. |
| SLA Time | This property specifies the time of day a Job must complete by to meet a Service Level Agreement. |
| Submit on Hold | Select or clear this checkbox to submit the Job on Hold when it is scheduled by this Trigger. The Job will require manual intervention before it is allowed to run. |
| Suppress Menu Display | This property defines if this Job should be omitted from Submit Menus. Clear the checkbox to display this Job on the Submit Menus. |
| Execute | Description |
|---|---|
| Execute As | This property specifies the set of Credentials the Job will execute as when it is submitted. This property is required for the Job to run properly. |
| Home Directory | This property specifies the full path to the initial current directory for the Job. |
| Debug | This property specifies if a Job will run in Debug Mode. When a Job runs in Debug Mode, it will not satisfy Dependencies or Triggers. |
| JDE Credential | This property specifies the Credentials provided for JD Edwards Jobs within the Job or Folder. If this is not a JD Edwards Job, these credentials are not required. |
| Add-In Credential | This property specifies the Credentials for third party add-ins, such as Banner, Oracle, or Peoplesoft. |
| Alternate Credentials | This property specifies the alternate Credentials for a Job. |
| Crystal Reports Credential | This property specifies the Credentials that are used for Crystal Reports. |
| Force 32bit | When set to true, this Job will run as a 32 bit process, even on 64 bit machines. This option was included for backwards compatibility following V6 to V7 migrations and it should not be adjusted on a V7 Execution Method. |
| Force V2 | When set to true, this Job will run using V2.0 of the .NET Framework. This option was included for backwards compatibility following V6 to V7 migrations and it should not be adjusted on a V7 Execution Method. For more information, see Resolving Mixed Mode Assembly error message in PowerShell. |
| Host As | This property specifies the Host As Credentials for some Execution Methods that start a host process. The Credentials connect to the Agent server using the Execute As Credentials. |
| Informatica Credential | This property specifies the Informatica User to run the Job. |
| Informatica Polling Interval | This property specifies the time interval, in Delta Time, between the automatic retry attempts for the Informatica Cloud Activity Log Status update REST call. |
| Informatica Retry Count | This property specifies the maximum number of automatic retry attempts for the Informatica Clous REST calls. |
| Informatica Retry Interval | This property specifies the time interval, in Delta Time, between automatic retry attempts for Informatica Cloud REST calls. |
| Netezza Credential | This property specifies the Credential to use to login in to Netezza. |
| No BOM | Select or clear the checkbox to enable or disable the Job’s source file from having a Unicode byte order mark. |
| OS Prompt Pattern | This property specifies the regular expression that will match the operating system command when using the SSHPrompt Execution Method. This property sets the format of the prompt that JAMS is looking for, so it can recognize it and send the commands. |
| People Soft Credential | This property specifies the Credential to use when connecting to PeopleSoft. |
| Run Priority | This property specifies the execution priority for the Job. The priority is the sum of the Job’s priority and any priority value on the parent Folder. |
| Search Path | This property specifies a comma-separated list of paths that are searched when trying to resolve references. |
| SQL Agent Credential | This property specifies the Credential for running SQL Agent Jobs. |
| SQL Stored Proc Credential | This property specifies the Credential for running SQL Stored Procedure Jobs. |
| SSIS Credential | This property specifies the Credential for running SSIS Jobs. |
| SSRS Credentials | This property specifies the Credentials that are passed to the SSRS server when the Job is executing. |
| z/OS Ftp Retry Interval | This property specifies the FTP retry interval between 500 and 5000 milliseconds. |
| z/OS Max Ftp Retry | This property specifies the maximum number of retries between 1 and 100 for FTP exceptions while connected. |
| z/OS Max Status Retry | This property specifies the maximum number of retries between 1 and 1000 to wait for the z/OS status response. |
| z/OS Status Retry Interval | This property specifies the z/OS retry interval between 500 and 60000 milliseconds. |
| Job Concurrent Limit | This property specifies the maximum number of instances of this Job that may execute concurrently. |
| Single Instance Action | Select an option to define the action to be taken if a Job retries to start while an instance of that Job is currently running. Options include Allow Multiple, Cancel Executing, Cancel Pending, and Wait. |
| Host Key Checking | This property specifies the action JAMS should take if the SSH fingerprint does not match when connecting to an SSH server. You can enter the following options:
|
| Accept Host Key | Select or clear the checkbox to accept or deny the Host Key. |
| Completion | Description |
|---|---|
| Notify E-Mail | Select the email addresses that are combined with the addresses in any email notification event. |
| Bad Regex Pattern | This property specifies a regular expression pattern that indicates a failed execution. |
| Cancel When Shutdown | Set this property to true to have any executing instances of this Job be canceled when the JAMS Executor service is stopped. |
| Compare Condition | Select the type of comparison that will be performed. |
| Compare Value | This property sets the value that will be used in the comparison. |
| Completion Bearing | This property specifies the acceptable Completion Severity for a Job. |
| Exit Code Handling | Select the method for how JAMS should evaluate a Job's exit code. Available options include ZeroIsGood, OneIsGood, PositiveIsGood, OddIsGood, EvenIsGood, SpecificGood, and SpecificBad. |
| Good Regex Pattern | This property specifies a regular expression pattern that indicates a successful execution for this Job. |
| Minimum Severity | Select the minimum acceptable completion severity. Available options include Success, Info, Warning, Error, and Fatal. |
| Notify User | Select or clear the checkbox or enable or disable including the user that submitted the Job when sending notifications. |
| Report Location | This property specifies the location for OpenVMS reports. |
| Retain Option | This property specifies how the Job will be displayed in the Monitor after it completes. If set to Always, completed Jobs will never leave the Monitor. |
| Retain Time | Select the method for displaying the Job in the Monitor when it completes. Available options include Default, Timed, Error, and Always. When the Retain Option is set to Timed, this property is used to specify (in minutes) the amount of time to display the completed Job in the Monitor. |
| Specific Informational | This property specifies a comma-separated list of integer values for Informational Job completion exit codes. |
| Specific Values | This property specifies a comma-separated list of integers for the Job completion exit codes. |
| Specific Warning | This property specifies a comma-separated list of integers for Warning Job completion exit codes. |
| Interval | Description |
|---|---|
| Status Check Interval | This property sets the time interval in seconds between status checks. |
| Log | Description |
|---|---|
| Include MS Dynamics Log | Select the checkbox to include MS Dynamics Job Logs. Clear the checkbox to exclude the MS Dynamics Job Logs. |
| Keep Logs | Select the checkbox to keep the batch log files when the Job completes on OpenVMS. Clear the checkbox to exclude the log files. |
| Log Filename | This property specifies the default name for a log file. |
| Timestamp Logs | Select the checkbox to add a timestamp to batch log files with the extension format “yyyyMMdd_HHmmssfff.log”. Clear the checkbox to not add the timestamp. |
| MicroFocus | Description |
|---|---|
| MicroFocus Server | This property specifies the name of the MicroFocus Server. |
| MicroFocus Bin Port | This property specifies the port for the MicroFocus bin. |
| MicroFocus Submit Type | This property specifies the submit type for MicroFocus. The available options are JES2, JES3, or VSE. |
| Source | Description |
|---|---|
| Template Library | This property specifies the full file specification that contains the JAMS templates that are used when parsing the Job. |
| Encoding | Description |
|---|---|
| Input Encoding | This property specifies the input encoding for the Job. You can enter character types, such as UTF-8 or ASCII. |
| Output Encoding | This property specifies the output encoding for the Job. You can enter character types, such as UTF-8 or ASCII. |
| Azure | Description |
|---|---|
| Azure Connection | This property stores to the Connection Store item for connecting to Azure. |
| Azure Credential | This property stores the client secret value used to authenticate to Azure. |
| Notify | Description |
|---|---|
| Halted Level | This property specifies the level that can be used by event handlers to classify events. |
| Halted Message | This property specifies the notification message when a Sequence is halted. |
| Halted Notify Event Class | Select the event class that this event will generate when it occurs. Available options include None, Normal, Low, Moderate, High, Urgent, and Critical. |
| Notify Other | This property specifies a comma-separated list of usernames. This list is merged with the list from the Folder Definition. |
| Notify Users | This property specifies a comma-separated list of usernames in Active Directory. This list is merged with the list from the Folder Definition. |
| Print Location | This property specifies the device and directory for reports that are produced by Jobs in this Folder. |
| Print Queue | The property specifies the default print queue for Jobs in this Folder. |
| SQL | Description |
|---|---|
| SQL Connection | This property specifies the Agent Definition that points to the SQL Server. |
| Airflow | Description |
|---|---|
| Airflow Connection | This property stores to the Connection Store item for connecting to Airflow. |
| Airflow Credential | This property stores to the secrets used to authenticate to Airflow. |
| Airflow Status Check Interval | This property sets the time interval in seconds between status checks. |
| Amazon EC2 | Description |
|---|---|
| Amazon EC2 Connection | This property stores to the Connection Store item for connecting to an Amazon EC2 instance. |
| Amazon EC2 Credential | This property stores to the secrets used to authenticate to an Amazon EC2 instance. |
| Amazon EC2 Instance Id | This property stores to the Amazon EC2 Instance Id. |
| Amazon EC2 Region | This property stores to the Amazon EC2 Region. |
| Automate | Description |
|---|---|
| Automate Credential | This property specifies the Credentials that are used to access the Automate server. |
| Azure Blob | Description |
|---|---|
| Azure Blob Connection | This property stores to the Connection Store item for connecting to an Azure Blob. |
| File Transfer | Description |
|---|---|
| Archiver Credentials | This property specifies the Credential to use when performing a zip operation on a file. |
| File Transfer Connection | This property specifies the Connection that JAMS will use for this Job. |
| FTP Credential | This property specifies the Credential for the FTP Job. |
| SFTP User | This property specifies the Credential for an SFTP Job. |
| GoAnywhere | Description |
|---|---|
| GoAnywhere Credential | This property specifies the Credentials that are used to connect to a GoAnywhere server. |
Parameters
A JAMS Parameter contains a single slice of data that (unlike a Variable) remains exclusive to the associated Job or Folder. A JAMS Job may contain zero or more Parameters. When JAMS interactively submits a Job with Parameters, a fill-in-the-blank form is displayed to define values for these Parameters. Once the Parameter is configured in the Job definition, it can be specified in the Source tab.
By default, the Parameters are displayed in the order they were created. However, you can change the order as described in the section below.
If a Job uses a parsed Execution Method, you can embed Parameter names into the Job’s Source using the {ParameterName} specification. When the Job runs, it uses the value of the Parameter in place of this specification.
Adding a Parameter
- From the Jobs screen, click the name of a Job to open its properties.
- Click the Parameters tab.
- Click ADD from the top right corner of the Parameters table. An Add a New Parameter screen is displayed.
- In the Parameter Name field, enter a name for the Parameter.
- In the Data Type field, select the type/format of the Parameter. For example, you can select Text or Boolean.
- In the Default Value field, enter a default value.
- Click Save and Continue to Edit.
- Define additional Parameter Properties as desired. See the table below for more information on the available options.
- Click Save.
Modifying a Parameter
-
From the Jobs screen, click the name of a Job to open its properties.
-
Click the Parameters tab.
-
Do one of the following:
- Under the Parameter Name field, click the name of the Parameter to edit it.
- Click a row in the table and click PROPERTIES from the top right corner of the Parameters table.
- Click a row in the table, click the under the Actions column, and select Properties.
-
Define additional Parameter Properties as desired. See the table below for more information on the available options.
-
Click Save.
Changing the Order of the Parameters
You can reorder the list of Parameters, so they are displayed in the desired order.
-
From the Jobs screen, click the name of a Job to open its properties.
-
Click the Parameters tab.
-
Do one of the following:
- Click a row in the table and click REORDER from the top right corner of the Parameters table.
- Click a row in the table, click the under the Actions column, and select Reorder.
-
Drag and drop the listed Parameters to reorder them.
-
Click Save.
Deleting a Parameter
-
From the Jobs screen, click the name of a Job to open its properties.
-
Click the Parameters tab.
-
Do one of the following:
- Click a row in the table and click DELETE from the top right corner of the Parameters table.
- Click a row in the table, click the under the Actions column, and select Delete.
-
When you are prompted to confirm the deletion, click Delete.
-
Click Save.
Parameter Properties
| Name | Description |
|---|---|
| Parameter Name | This property defines the name of the Parameter. Each Parameter name must be unique within a particular Job. |
| Value | Description |
|---|---|
| Default Format | The format string that defines how the Parameter will be formatted. Default formats vary depending on the Parameter's Data Type. |
| Default Value | The property specifies the default value for this Parameter. The default value for dates may be entered as a specific date or you can use JAMS English language date text such as Today, Last Monday, or First Monday of Month. |
| Encrypt | Select the checkbox to encrypt the value of the Parameter. |
| Variable | Optionally, you can acquire the Default Value for the Parameter using a JAMS Variable. Use the Browse button to search for and select an existing variable. |
| DataType | Description |
|---|---|
| DataType | Use the drop-down to specify a data type for the Parameter.
|
| Length | If the Parameter's data type is set to Text or Integer, specify the maximum length within this property. |
| User Interface | Description |
|---|---|
| Allow Entry | When this attribute is enabled, the user can make an entry to this Parameter when submitting the Job. |
| HelpText | The entered text displays when a user hovers over the Parameter entry field on manual submissions. |
| Hide | This attribute determines if the Parameter is displayed when this Job is submitted. If you have "Manage" access to the current Job, hold down the ALT key when submitting the Job and all hidden Parameters will be displayed. |
| Must Fill | When enabled, this attribute requires the user to completely fill this Parameter to its Maximum Length as set on the Data Type tab. |
| Prompt | When a Job is interactively submitted, a form is created which is used to prompt the user for the Job’s Parameter values. The entered text represents the prompt to the user submitting the Job. |
| Required | When checked, this attribute requires users to enter a value for this Parameter. |
| Sequence | A read-only integer used by the system to calculate the sort order of the Parameters when presented to users when submitting a Job. |
| Uppercase | When this option is checked, all entered data is converted to uppercase. |
| ValidationData | The value used when attempting to validate the Parameter value. |
| ValidationType | This property allows you to select the type of validation JAMS can perform on the Parameter value. The validation types are:
|
History
The History tab displays information about the most recent executions of the Job. This includes the Status, Job Name, Entry ID, Final Severity, and the Final Status from the Job entry. The default is 90 days, but this can be configured in the History Lookback Period property on the Configuration screen. See Configuration for more information.
References
The References tab lets you view which objects are referencing a Job as well as where they are located.
| Property | Description |
|---|---|
| Type | This property lists the type of object in JAMS that is using the Job. |
| Referring Name | This property lists the name of the object in JAMS that is using this Job. For example, this field can list the name of a Job. |
| Folder Path | This property displays the path to the Folder that contains the object that is using this Job. |
| Element Type | This property displays the type of internal element for the object that is using this Job. |
| Property Name | This property displays the area where the object is used. This can include TriggerJob, DependsOnJob, or SinceJob. |
| Description | This property displays the optional description of the object that is using this Job. |
Security
The Security tab acts as an access control list, and it is capable of handling many Access Control Entries (ACE).
Removing all ACEs on an object behaves the same as Windows would. When all ACEs are removed from an object, only the GrantAdministratorsBypass group will have access to that object. Previously, removing all ACEs from an object would give all Authenticated Users access to that object.
While Jobs will inherit security from their Folder, a Job’s security setting may be configured to override any folder-level security.
Each ACE can specify the following rights on a Job from the drop-down arrow for the ACE:
- Abort: allows the user to access the JAMS Job Monitor to abort or restart an occurrence of this Job.
- Change: permits modification of the Job’s definition provided the user also has Change access to Job Definitions, which is located in the Access Control list.
- Control: permits modification of the current Job’s Access Control List.
- Debug: allows submission of this Job, but only if the /DEBUG qualifier is used on the JAMS SUBMIT command. This qualifier submits the Job under the submitter's username rather than the username specified in the Job or Folder Definitions.
- Delete: permits deletion of the current Job definition provided the user also has Delete access to Job Definitions.
- Inquire: allows inquiry into the current Job definition provided that the user also has Inquire access to Job Definitions.
- Manage: permits the user to use the JAMS Job Monitor to hold, reschedule, release or delete an occurrence of the current Job.
- Monitor: allows the current Job to appear in the Job Monitor.
- Submit: grants the right to submit the current Job.
Statistics
The Statistics tab contains historical Job statistics and completion data broken down using a variety of performance measures.
Using the Reset button will remove historical completion statistics and impact the percent completion calculations seen in the Monitor.
Completion
The Completion tab displays the latest completion date and time for each completion type for the Job.