Skip to main content

Working with Jobs

Every component in JAMS supports or controls how a Job is defined or run. A JAMS Job includes a number of 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.

Definitions Screen

You can create, modify, or delete Jobs from the Definitions screen. The Definitions screen displays the Folder Navigator, Job Definitions, and Variable Definitions options. For each Job, you can view the following information by default:

  • Job Name – The name to identify the Job.
  • Description – The optional description to provide more information about the Job.
  • Last Change – The date and time the Job was last changed based on the local Scheduler time.
  • 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.
  • Folder Name – The Folder where the Job is saved.
  • Method Name – The type of Execution Method that was selected for the Job.

You can add additional columns by using the Column Chooser. Right-click a column heading, and select Column Chooser.

Adding a Job

  1. Click Definitions from the Shortcut menu.
  2. Click the Job Definitions tab.
  3. Click Add.
  4. In the Folder field, select the Folder where the Job will be saved.
  5. In the Name field, enter a name for the new Job.
  6. If desired, give the Job a description.
  7. In the Execution Method field, select an Execution Method for the Job from the drop-down list.
  8. Click Ok.
  9. Define the Job Source, Schedule, Properties, Parameters, Documentation, and Security as desired.
  10. When the Job has been configured as desired, click Save and Close.

Modifying a Job

  1. Click Definitions from the Shortcut menu.

  2. Click the Job Definitions tab.

  3. Open the properties by doing one of the following:

    • Double-click the Job.
    • Select the Job and then click the Properties button in the Control Bar.
    • Right-click the Job and select Properties.
  4. Modify the Job, Source, Schedule, Properties, Parameters, Documentation, and Security as desired.

  5. When the Job has been reconfigured as desired, click Save and Close.

Modifying the Properties on Multiple Jobs

You can modify the Agent, Batch Queue, Execute As, and Enabled properties for multiple Jobs at one time. Ensure the Jobs that you want to update are in the same Folder. If you do not have the permission to change Jobs, an error message is displayed.

As you make changes, the dialog displays each change and the number of Jobs that will be updated. Each field has a Reset to Defaults option to set the property to the property value defined in the parent Folder. This allows Jobs to inherit the property from the Folder.

  1. Click Definitions from the Shortcut menu.
  2. Click the Job Definitions tab.
  3. Select the Jobs you want to modify.
  4. Right-click the Jobs and select Edit Selected.
  5. In the Enabled field, select Yes, enable or No, disable.
  6. In the Agent field, select an Agent.
  7. In the Batch Queue field, select a Batch Queue.
  8. In the Execute As field, select a JAMS Credential that will be used to run the Jobs.
  9. Click SAVE AND EXIT.

Deleting a Job

  1. Click Definitions from the Shortcut menu.

  2. Click the Job Definitions tab.

  3. Do one of the following:

    • Select the Job and then click the Delete button in the Control Bar.
    • Right-click the Job and select Delete.
  4. A dialog is displayed to confirm the deletion. Click Yes, No, or Cancel.

Job Definition Tabs

Summary

This tab includes basic Job information:

  • Job Name - This property displays the identifier for a JAMS Job and is similar to the filename for a command file. Please note the Job name must be unique to the Folder where it is saved.
  • Description - This optional property appears in menus, lists, and reports and provides a more detailed explanation for the current Job.
  • Last Changed - The Last Changed property displays the user (Credential) who last modified this Job along with the date and time of the modification.

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, a fill-in-the-blank style form, a Sequence editor, or a Workflow editor.

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.

note

The Source tab has an option to let you edit source code in the PowerShell ISE. If you make edits and close the PowerShell ISE, you need to save the Job, close it, and open it again to make additional edits to the source.

Keyboard shortcut commands for the Job Source Editor are shown in the table below. Use the header to expand the content.

Source Code Editor Keyboard Shortcuts

ClipboardShortcut
CopyCTRL+C, CTRL+INSERT
PasteCTRL+V, SHIFT+INSERT
CutCTRL+X, SHIFT+DEL
Select AllCTRL+A
File OperationsShortcut
Save AsCTRL+S
OpenCTRL+O
PrintingShortcut
PrintCTRL+P
PositioningShortcut
Go to lineCTRL+G
Go to startCTRL+Home
Go to endCTRL+End
Search and ReplaceShortcut
FindCTRL+F
Find NextF3
Find SelectedCTRL+F3
ReplaceCTRL+H
Undo and RedoShortcut
UndoCTRL+Z
RedoCTRL+Y
BookmarksShortcut
Toggle unnamed bookmarksCTRL+F2, CTRL+K->CTRL+K
Go to next bookmarkF2, CTRL+K->CTRL+N
Go to previous bookmarkF3, CTRL+K->CTRL+P
Toggle named bookmarkCTRL+[index of bookmark]
Go to named bookmarkCTRL+SHIFT+[index of bookmark]
TabsShortcut
Add leading tabTab with multiple line selection
Remove leading tabSHIFT+Tab
OutliningShortcut
Switch on outlining and collapse allCTRL+M->CTRL+O
Switch off outliningCTRL+M->CTRL+P
Toggle outliningCTRL+M->CTRL+M
White SpaceShortcut
Show white spaceCTRL+SHIFT+W
note

The Source Editor text colors can be customized using a configuration file described in the following article: How to Customize the Source Editor.

Schedule

You can set several types of Schedule Items on a Job. The Schedule tab has a natural language format to let you specify the options below. The + button lets you configure each option. See Schedules for more information.

OptionSchedule Menu
TriggersRun this job
DependenciesThis Job depends on a
Job StatusSet this Job's status to
Events and NotificationsWhen an event occurs
ReportsSend a report

Properties

A list of Properties are 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, then click OK in the Add Property dialog.

StatusDescription
EnabledSelect or clear the checkbox to enable or disable the property.
ScheduleDescription
AgentThis property specifies the Agent where the Job will execute when the Job is submitted.
Batch QueueThis property specifies the Batch Queue that will be used when this Job is scheduled.
CalendarThis 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 CountThis property specifies the maximum number of retry attempts if the Job fails.
Retry IntervalThis property specifies the time interval, in Delta Time, between automatic retry attempts.
Scheduling PriorityThis 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 DateThis property specifies the submit date used when the Job is manually submitted.
Default Submit TimeThis property specifies the submit time used when the Job is manually submitted.
RestartableThis property defines if the Job can be restarted after a failure.
SLA TimeThis property specifies the time of day a Job must complete by to meet a Service Level Agreement.
Submit on HoldSelect or clear this checkbox to submits 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 DisplayThis property defines if this Job should be omitted from Submit Menus. Clear the checkbox to display this Job on Submit Menus.
ExecuteDescription
Execute AsThis 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 DirectoryThis property specifies the full path to the initial current directory for the Job.
DebugThis 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 CredentialThis 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 CredentialThis property specifies the Credentials for third party add-ins, such as Banner, Oracle, or Peoplesoft.
Alternate CredentialsThis property specifies the alternate Credentials for a Job.
Crystal Reports CredentialThis property specifies the Credentials that are used for Crystal Reports.
Force 32bitWhen 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 V2When 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 AsThis 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 CredentialThis property specifies the Informatica User to run the Job.
Informatica Polling IntervalThis 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 CountThis property specifies the maximum number of automatic retry attempts for the Informatica Clous REST calls.
Informatica Retry IntervalThis property specifies the time interval, in Delta Time, between automatic retry attempts for Informatica Cloud REST calls.
Netezza CredentialThis property specifies the Credential to use to login in to Netezza.
No BOMSelect or clear the checkbox to enable or disable the Job’s source file from having a Unicode byte order mark.
OS Prompt PatternThis 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.
Oracle DB CredentialThis property specifies the Credential for connecting to an Oracle database.
Oracle EBS CredentialThis property specifies the Credential to use when running an Oracle EBS Job.
People Soft CredentialThis property specifies the Credential to use when connecting to PeopleSoft.
Run PriorityThis 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.
SQL Agent CredentialThis property specifies the Credential for running SQL Agent Jobs.
SQL Stored Proc CredentialThis property specifies the Credential for running SQL Stored Procedure Jobs.
SSIS CredentialThis property specifies the Credential for running SSIS Jobs.
SSRS CredentialsThis property specifies the Credentials that are passed to the SSRS server when the Job is executing.
Search PathThis property specifies a comma-separated list of paths that are searched when trying to resolve references.
z/OS Ftp Retry IntervalThis property specifies the FTP retry interval between 500 and 5000 milliseconds.
z/OS Max Ftp RetryThis property specifies the maximum number of retries between 1 and 100 for FTP exceptions while connected.
z/OS Max Status RetryThis property specifies the maximum number of retries between 1 and 1000 to wait for the z/OS status response.
z/OS Status Retry IntervalThis property specifies the z/OS retry interval between 500 and 60000 milliseconds.
Job Concurrent LimitThis property specifies the maximum number of instances of this Job that may execute concurrently.
Single Instance ActionSelect 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 CheckingThis 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:
  • AcceptHostKey: Accepts the host key and adds the fingerprint to the cache of acceptable fingerprints. (This is not secure. Only use if you are sure of the identity of the server.)
  • CheckParameter: Checks for a boolean parameter named AcceptHostKey and accepts the key if the parameter value is true.
  • FailFirstJob: Fails the first Job and adds the fingerprint to the cache of acceptable fingerprints. (Default setting)
Accept Host KeySelect or clear the checkbox to accept or deny the Host Key.
CompletionDescription
Notify E-MailSelect the email addresses that are combined with the addresses in any email notification event.
Bad Regex PatternThis property specifies a regular expression pattern that indicates a failed execution.
Cancel When ShutdownSet this property to true to have any executing instances of this Job be canceled when the JAMS Executor service is stopped.
Compare ConditionSelect the type of comparison that will be performed.
Compare ValueThis property sets the value that will be used in the comparison.
Completion BearingThis property specifies the acceptable Completion Severity for a Job.
Exit Code HandlingSelect 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 PatternThis property specifies a regular expression pattern that indicates a successful execution for this Job.
Minimum SeveritySelect the minimum acceptable completion severity. Available options include Success, Info, Warning, Error, and Fatal.
Notify UserSelect or clear the checkbox or enable or disable including the user that submitted the Job when sending notifications.
Report LocationThis property specifies the location for OpenVMS reports.
Retain OptionThis 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 TimeSelect 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 InformationalThis property specifies a comma-separated list of integer values for Informational Job completion exit codes.
Specific ValuesThis property specifies a comma-separated list of integers for the Job completion exit codes.
Specific WarningThis property specifies a comma-separated list of integers for Warning Job completion exit codes.
IntervalDescription
Status Check IntervalThis property sets the time interval in seconds between status checks.
LogDescription
Include MS Dynamics LogSelect the checkbox to include MS Dynamics Job Logs. Clear the checkbox to exclude the MS Dynamics Job Logs.
Keep LogsSelect the checkbox to keep the batch log files when the Job completes on OpenVMS. Clear the checkbox to exclude the log files.
Log FilenameThis property specifies the default filename for a log file.
Timestamp LogsSelect 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.
MicroFocusDescription
MicroFocus ServerThis property specifies the name of the MicroFocus Server.
MicroFocus Bin PortThis property specifies the port for the MicroFocus bin.
MicroFocus Submit TypeThis property specifies the submit type for MicroFocus. The available options are JES2, JES3, or VSE.
SourceDescription
Template LibraryThis property specifies the full file specification that contains the JAMS templates that are used when parsing the Job.
EncodingDescription
Input EncodingThis property specifies the input encoding for the Job. You can enter character types, such as UTF-8 or ASCII.
Output EncodingThis property specifies the output encoding for the Job. You can enter character types, such as UTF-8 or ASCII.
AzureDescription
Azure ConnectionThis property stores to the Connection Store item for connecting to Azure.
Azure CredentialThis property stores the client secret value used to authenticate to Azure.
NotifyDescription
Halted LevelThis property specifies the level that can be used by event handlers to classify events.
Halted MessageThis property specifies the notification message when a Sequence is halted.
Halted Notify Event ClassSelect the event class that this event will generate when it occurs. Available options include None, Normal, Low, Moderate, High, Urgent, and Critical.
Notify OtherThis property specifies a comma-separated list of usernames. This list is merged with the list from the Folder Definition.
Notify UsersThis property specifies a comma-separated list of usernames in Active Directory. This list is merged with the list from the Folder Definition.
Print LocationThis property specifies the device and directory for reports that are produced by Jobs in this Folder.
Print QueueThe property specifies the default print queue for Jobs in this Folder.
SQLDescription
SQL ConnectionThis property specifies the Agent Definition that points to the SQL Server.
AirflowDescription
Airflow ConnectionThis property stores to the Connection Store item for connecting to Airflow.
Airflow CredentialThis property stores to the secrets used to authenticate to Airflow.
Airflow Status Check IntervalThis property sets the time interval in seconds between status checks.
Amazon EC2Description
Amazon EC2 ConnectionThis property stores to the Connection Store item for connecting to an Amazon EC2 instance.
Amazon EC2 CredentialThis property stores to the secrets used to authenticate to an Amazon EC2 instance.
Amazon EC2 Instance IdThis property stores to the Amazon EC2 Instance Id.
Amazon EC2 RegionThis property stores to the Amazon EC2 Region.
AutomateDescription
Automate CredentialsThis property specifies the Credentials that are used to access the Automate server.
Azure BlobDescription
Azure Blob ConnectionThis property stores to the Connection Store item for connecting to an Azure Blob.
BannerDescription
Banner ConnectionThis property specifies the Banner Connection from the Connection Store.
Banner UserThis property specifies the Credential for connecting to Banner.
Printer NameThis property specifies the name of the printer to use.
Banner Job TypeThis property specifies the type of Banner Job to run.
Form NameThis property specifies the name of the Banner form to use.
Submit TimeThis property specifies the submit time for the Banner Job.
Include .log FileSelect the checkbox to include the Banner .log file in the JAMS Job Log. Clear the checkbox to exclude the .log file.
Banner Script NameThis property specifies that name of the Banner script to run.
Include .lis FileSelect the checkbox to include the Banner .log file in the JAMS Job Log. Clear the checkbox to exclude the .log file.
Log File Polling IntervalThis property sets the polling time for the Banner .log and .lis files. The default is 30 seconds. It is recommended that this value be set to a value that slightly exceeds the expected run time of the Job.
MIME TypeThis property specifies the type of file used to format reports/output files. Select PDF or Plain Text.
Special PrintThis property specifies the field that may be used to pass information to 3rd-party applications.
PDF FontThis property specifies the type of font to use for PDF reports.
PDF Font SizeThis property specifies the size of the font to use for PDF reports.
Environment TypeThis property specifies the type of environment for the Banner instance to either Unix or Windows. By default, this option is set to Unix. If the Oracle database instance is running on Windows rather than Unix, set this option to Windows.
File TransferDescription
Archiver CredentialsThis property specifies the Credential to use when performing a zip operation on a file.
FTP CredentialThis property specifies the Credential for the FTP Job.
File Transfer ConnectionThis property specifies the Connection that JAMS will use for this Job.
SFTP UserThis property specifies the Credential for an SFTP Job.
SAPDescription
SAP ConnectionThis property specifies the Connection that is used for connecting to SAP.

Parameters

A JAMS Parameter contains a single slice of data that (unlike a Variable) remains exclusive to the associated Job or Folder.

When JAMS interactively submits a Job with Parameters, you are presented with a fill-in-the-blank form to define values for these parameters. When JAMS builds a Parameter form, the Parameters are placed in the order in which they are defined, unless the Parameters were given Sequence numbers. Sequence numbers are defined by the system and may be adjusted. To adjust the Sequence, or order, of Parameters, use the Move Up and Move Down arrows to properly recalculate the final Parameter Sequence value.

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.

A JAMS Job may contain zero or more Parameters.

Add a Parameter

  1. In any Job Definition dialog, click the Parameters tab.
  2. Click +.
  3. Select Add Parameter.
  4. In the dialog, define the Parameter Name, Data Type, and Default Value of the Parameter.
  5. Click Ok.
  6. Define additional Parameter Properties as desired.
  7. Click Save and Close.
  8. Click Save and Close on the Job Definition dialog.

Parameter Properties

NameDescription
ParamNameThis property defines the name of the Parameter. Each Parameter name must be unique within a particular Job.
DataTypeDescription
DataTypeUse the drop-down to specify a data type for the Parameter.
  • Text
  • Integer
  • Date
  • Time
  • DateTime
  • Float
  • Unknown
  • Boolean
LengthIf the Parameter's data type is set to Text or Integer, specify the maximum length within this property.
User InterfaceDescription
Allow EntryWhen this attribute is enabled, the user can make an entry to this Parameter when submitting the Job.
HelpTextThe entered text displays when a user hovers over the Parameter entry field on manual submissions.
HideThis 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 FillWhen enabled, this attribute requires the user to completely fill this Parameter to its Maximum Length as set on the Data Type tab.
PromptWhen 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.
RequiredWhen checked, this attribute requires users to enter a value for this Parameter.
SequenceAn integer used by the system to calculate the sort order of the Parameters when presented to users when submitting a Job. Do not manually adjust this value.
UppercaseWhen checked, this attribute converts all entered data to uppercase.
ValidationDataThe value used when attempting to validate the Parameter value.
ValidationTypeThis property allows you to select the type of validation JAMS can perform on the Parameter value. The validation types are:
  • None: No validation is performed.
  • Directory: this validation is used on text parameters. A button is placed next to the parameter's text box that opens a dialog allowing the user to browse the file system for a directory.
  • SaveFile: this is used on text parameters. A button is placed next to the parameter's textbox that opens a dialog allowing the user to browse for a file, which may or may not exist.
  • OpenFile: this is used on text parameters. A button is placed next to the parameter's textbox that opens a dialog allowing the user to browse the file system for a file, which must exist.
  • MaskedEdit: this validation type uses a mask to distinguish between proper and improper user input. The mask is set in the Validation Data property.
ValueDescription
Default FormatThe format string that defines how the Parameter will be formatted. Default formats vary depending on the Parameter's Data Type.
Default ValueThe 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.
VariableOptionally, you can acquire the Default Value for the Parameter using a JAMS Variable. Use the File Browser button to search for and select an existing variable.

Once the Parameter is configured in the Job definition, it can be specified in the Source tab.

Diagram

The Diagram tab lets you see the prerequisites, triggers, and downstream dependencies related to this Job. This view lets you see the end-to-end process the Job will use to complete, including any other upstream or downstream Jobs that may run.

This tab is useful for the following:

  • Setting up Jobs: You can view all of the dependencies between multiple Jobs.
  • Auditing Job failures: You can get a better understanding of why a dependent Job failed and the effect on other Jobs.
  • Monitoring Critical Jobs: You can more easily view a critical Job if any previous Jobs have an impact on its ability to run.

See Diagrams for more information.

History

The History tab contains historical Job statistics and completion data broken down using a variety of performance measures.

note

Using the Reset button in the History Tab will remove historical completion statistics and impact the percent completion calculations seen in the Monitor.

References

The References tab lets you view where the Job is referenced within JAMS.

Documentation

The Documentation tab lets you add more information to a Job. You can add an entry for a description or instructions or a link to an existing file. See Documentation Items for more information.

Security

The Security tab acts as an access control list, and it is capable of handling many Access Control Entries (ACE).

note

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:

  • 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 on the Ribbon Bar.
  • 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.