Skip to main content
Version: OpCon 22.0 (On-Prem)

Viewing, Adding, and Editing Windows Job Details

To view, add, or edit a Windows job, you must have the required privileges as defined in Required Privileges.

Viewing Windows Job Details

  1. To view a Windows job, go to Library > Master Jobs.
  2. Select a Windows job in the list.
  3. Select Edit.
  4. Expand the Task Details panel to expose its content.

Adding Windows Job Details

  1. Create the job and general info as described in Adding a Job.
  2. Expand the Task Details section.
  3. Select a User Id that is assigned to the job for Windows security authentication.
  4. Select from the Machines or Machine Group drop-down list the machine where the LSAM is installed. If you wish instead to specify a machine group, then toggle the Machines switch to Machine Group then select the machine group from the drop-down list. When toggled to Machine Group, the switch will appear green.
  5. Select a Job Action.

For a Windows job, you can add the following job actions:


Editing Windows Job Details

  1. To edit Windows job details, go to Library > Master Jobs.
  2. Select a Windows job.
  3. Select Edit.
  4. Select the lock icon. The button appears gray and locked (Master Job Definition Read-only Button) when in Read-only mode and appears green and unlocked (Job Definition Admin Button) when in Admin mode.
  5. Expand the Task Details panel.
  6. Select from the Machines or Machine Group drop-down list the machine where the LSAM is installed. If you wish instead to specify a machine group, then toggle the Machines switch to Machine Group then select the machine group from the drop-down list. When toggled to Machine Group, the button will appear green Green Enabled     Switch.
  7. Select a User Id that is assigned to the job for Windows security authentication.
  8. Select a Job Action.

For a Windows job, you can edit the following job actions:


Run Program

In the Prerun frame:

  1. Optional: Enable the Prerun switch Green Enabled Switch.
    1. Enter the command line detail for the prerun process. This field permits up to 4000 characters.
    2. Enter the working directory for the prerun job. This field permits up to 255 characters.
  2. Specify the failure criteria for the prerun job by selecting an operator then entering or selecting an exit code integer.
  3. Enter the command line detail by providing the full path to the executable file on the LSAM machine. This field permits up to 4000 characters.
  4. Enter the working directory for the job listed in the command line. This field permits up to 255 characters.
  5. Enter the full path to the Exit Code Override File (E.C.O.F). This field permits up to 255 characters.
  6. Set the Windows process priority for the job. Available options are Idle, Normal, High, or Real Time.
  7. Specify the failure criteria for the job by selecting an operator then entering or selecting an exit code integer.
  8. Specify whether the defined criteria should be used to determine if the job Failed or Finished OK.
  9. Click the green Add button (+) to define the parsing criteria.
  10. Select the Search Operation from the drop-down list.
  11. Enter the String to Search. Windows wildcard characters are supported in the string. This field permits up to 255 characters.
  12. Select or enter the Exit Code.
  13. Click the green Add button (+) to define the environment variables.
    1. Enter a name in the Name field.
    2. Enter a value in the Value field. Remove any defined environment variable by clicking the Delete button at the end of the row.
    3. Click the OK button to add the name/value.
  14. Select Save.

File Arrival

  1. Enter the file path and name of the file to detect in the File Name field. Windows wildcard characters are supported in the file name (e.g., C:\Folder\Filename?ABC*.txt). This field permits up to 4000 characters.
  2. Specify the time frame (Start Time and End Time) within which the file must arrive in the directory. Either manually input the time frame or utilize the input field selectors to make your selections.
  3. Specify the amount of time in seconds (Duration) that the file size must remain stable. Either manually input the number of seconds or utilize the input field selector(s) to make your selection.
  4. Specify the failure criteria for the job by selecting an operator then entering or selecting an exit code integer.
  5. Specify whether the defined criteria should be used to determine if the job Failed or Finished OK.
  6. Select Save.

Embedded Script

For conceptual information, refer to Embedded Scripts in the Concepts online help.

note

If you do not have the Script Privilege for the script, then you will not be able to see the task details or edit the daily job definition (the Lock button will be disabled).

To perform this procedure:

  1. Select the script that you wish to associate with the job. The Type field will populate to show the type of script selected.
  2. Select the specific version (or revision) of the script to run for this job. The Comments field will populate with any notes provided about the script.
  3. Select the runner (interpreter) that will be used to run the script. The Run Command Template field will populate to show the syntax for the runner.
  4. Enter any argument(s) that you wish to pass to the script at runtime. This field permits up to 4000 characters.
  5. Enter the working directory for the execution of the script. This field permits up to 255 characters.
  6. Select an operator then enter or select the exit code integer.
  7. Specify whether the defined criteria should be used to determine if the job Failed or Finished OK.
  8. Click the green Add button (+) to define the environment variables.
    1. Enter a name in the Name field.
    2. Enter a value in the Value field. Remove any defined environment variable by clicking the Delete button at the end of the row.
    3. Click the OK button to add the name/value.
  9. Select Save.

More Information

For conceptual information, refer to Windows Jobs in the Concepts online help.