Skip to main content

Running Banner Jobs with a Script

The Banner and BannerWin Execution Methods let a JAMS Job run a Banner Job by calling the Banner job submission script on the Banner application server. Use Banner when the Banner application server runs Unix or Linux, and BannerWin when it runs Windows. The Banner Job must already exist in Banner.

When the Job runs, the Execution Method's template gets the next Banner one-up number, writes the Job's Banner parameter values to Banner, and calls the submission script with the values from the Job's Source tab. It then waits for the Banner Job to finish and writes the Banner Job's .log and .lis files to the JAMS Job log.

In the Web Client, you can create, view, and edit Banner and BannerWin Jobs. To run a Banner Job through a direct connection to the Banner database instead, see Running Banner Jobs.

Before You Begin​

Before you set up a Banner or BannerWin Job, ensure you have the following:

  • An Agent on the Banner application server: a JAMS AgentX for Banner, or a JAMS Windows Agent for BannerWin. See JAMS Agents for more information.
  • A Banner or BannerWin Execution Method whose template matches your Banner environment, including the Oracle SID, the Banner environment script, the Banner directories, and the path to the submission script. The shipped template contains placeholder values that must be changed. See Modifying an Execution Method for more information, and Banner in JAMS for what each part of the template does.
  • The Banner macro file, BannerMacros.xml, in the Template Library property of the Folder that holds the Job. By default, the file is in the JAMS Scheduler folder, such as C:\Program Files\MVPSI\JAMS\Scheduler\BannerMacros.xml. The template uses it to write the Banner parameter values.
  • A JAMS Credential for the Banner user that the Banner Job is submitted as. Both the Credential name and the Logon Username must be the Banner user name, and the Password fields hold the Banner password. See Credentials for more information.
  • A Credential that can sign in to the Banner application server through the Agent, set in the Job's Execute As property.

Creating a Banner Job​

  1. Click Jobs from the main menu.
  2. In the Folder Navigator, select a Folder where the Job will be saved.
  3. Click Add to add a new Job.
  4. In the Job Name field, enter a name for the Job.
  5. In the Execution Method field, select Banner or BannerWin.
  6. Click Save & Continue.
  7. On the Source tab, set the fields described in the table below.
  8. Click the Properties tab.
  9. In the Agent property, select the Agent on the Banner application server. In the Execute As property, select the Credential that signs in to that server.
  10. Click the Parameters tab, and add a Parameter for each Banner parameter. See Banner Parameters.
  11. Click the Schedules tab.
  12. As needed, schedule when the Job will run.
  13. Click Save.

Source Tab Fields​

FieldDescription
Banner CredentialThe JAMS Credential for the Banner user. The Banner Job is submitted as this user, and the template uses it to sign in to the Banner database.
Banner Job TypeThe type of Banner Job: Executable, Process, Report, CrystalReport, or Java. The default is Java.
Banner Script NameThe name of the Banner Job to run. Do not include a folder path or the .shl extension. The name must use the same case as the Banner Job on the Banner server.
Banner Printer NameThe Banner printer code passed to Banner with the submission. Optional.
Banner Form NameThe Banner printer form passed to Banner with the submission. Optional.
Banner Submit TimeThe time Banner runs the Banner Job, passed to Banner as entered. Leave it empty to run the Banner Job as soon as it is submitted.

Banner identifies each parameter by number. To pass a parameter value to Banner, add a Parameter to the JAMS Job named with the Banner parameter number, such as 01 or 02, and set its value. You can set the Parameter's prompt to the Banner parameter description. See Parameters for more information.

To pass more than one value for a parameter, separate the values with a pipe character. For example, a value of |Val1|Val2|Val3| for Parameter 01 is passed to Banner as three values for parameter 01.

Parameter 88 can include a label before each value. A value of This,That is passed to Banner as parameter 88This with the value That. You can also name the Parameter 88This and set its value to That.

How the Job Outcome is Determined​

The Job fails if:

  • The template exits with a non-zero exit code, for example because the Agent cannot run the submission script.
  • The Job log contains an Oracle error, such as ORA-01403. This includes the Banner Job's .log and .lis output.

Otherwise, the Job completes successfully.