HCL Workload Automation, Version 9.4

< Previous

Customizing jobs and job streams for submission

This scenario shows how you customize jobs and job streams for submission, for example, to submit a job that runs different data when a specific event occurs in your workload environment.

By having the ability to manage different tables of variables, you no longer need to create multiple job definitions to run different data when a specific event occurs. Instead, you define a single job that can be used when a specific event occurs, using variables in the data that the job runs (scriptname job attribute) and specifying the variable table containing the data related to the event when submitting the job. Using variable tables you reduce the number of jobs and job streams required to implement your workload therefore saving time and money.

You can find more information on this subject in the User's Guide and Reference.

Scenario goal

When a new employee is hired, a company wants to run an application to set up the environment for him. To be installed this application requires information such as the name of the employee, the department to which he belongs, and so on. To address this need the company performs the following actions:
  • Defines a variable table that contains the variables that identify the new employee.
  • Defines a unique job containing the variables required to install the application to be used for any new employee.
  • Specify the variable table that contains the variables that identify the new employee.

Roles and skills

This section lists the users involved in the scenario, the related roles, and the required skill level:
HCL Workload Automation Job Scheduler
Manages HCL Workload Automation workload. Required skills include Tivoli Workload Scheduler knowledge to:
  • Manage workload complexity and dependencies.
  • Optimize schedule efficiency, flexibility, and resiliency.
HCL Workload Automation Operator
Manages all operational processes and procedures, ensuring the business continuity of the workflow. Required skills include Tivoli Workload Scheduler knowledge to:
  • Monitor critical events and perform first analysis of problems.
  • Manage and coordinate the resolution of issues

System requirements

Install the following software before starting the scenario:
  • HCL Workload Automation version 8.5
  • Dynamic Workload Console version 8.5

Setting up the environment

Complete the following tasks before running the scenario:
  • Install and configure HCL Workload Automation version 8.5
  • Install and configure Dynamic Workload Console version 8.5

Running the Scenario

To complete the scenario, perform the following steps:

Procedure

  1. Define the JOB_SETUP_HR job used to install the application that sets up the environment for any new employee as follows:
    JOB_SETUP_HR
     SCRIPTNAME "/var/setupHRApp ^HOST^ ^PORT^ ^USER^ ^DEPT^"
     STREAMLOGON admin
  2. Define the JH_TABLE_ID001 new employee variable table as follows:
      VARTABLE JH_TABLE_ID001 
        MEMBERS
        HOST "cpux.acme.com"
    		  PORT "42577"
    		  USER "Jennifer Harold"
    		  DEPT "Sales"
    	 END 
  3. Submit the JOB_SETUP_HR job, specifying the JH_TABLE_ID001 new employee variable table. To do this, run the following command:
     conman sbj JOB_SETUP_HR ;vt=JH_TABLE_ID001     

Expected results

After you submit the JOB_SETUP_HR job, the company environment for the new employee is set up. You can reuse the same job for any new employee just by specifying the variable table containing the new employee data when you submit the job.

< Previous