Creating the scripts for external scheduling

To integrate with an extender scheduler, such as Tivoli® Workload Scheduler, you must create a new product job-specific shell script.

About this task

You use the template shell script run_job_template.sh in the $TOP/bin/ folder in the environment where the scheduled jobs run. Each job requires its own shell script that you modify from the run_job_template.sh template script. For example, if you have three jobs, you might create the following three scripts by modifying the run_job_template.sh script:
Table 1. Example of jobs and associated shell scripts
Name of job Associated shell script
Feed 1 run_job_feed1.sh
Feed 2 run_job_feed2.sh
DailyFeed3 run_job_dailyfeed3.sh

Procedure

  1. Copy the run_job_template.sh shell script to another file.
    For an example, see the previous table.
  2. Modify the new shell script.
    The file has:
    # Set the IBM Product Master installation directory here and uncomment the line  
    #export TOP=<Path to IBM Product Master installation home directory> # E.g. /usr/appinstalls/mdmpim60
    
    # Set the job related variables below as needed, uncomment the lines and do not modify anything else after this
    # CCD_JOB_NAME=<Job Name>             # [Required]
    # CCD_JOB_TYPE=<Job Type>             # [Required, Valid values are import|export|report]
    # CCD_COMPANY_CODE=<Company Code>     # [Optional, Default Value is trigo] 
    # CCD_USERNAME=<User Name>            # [Optional, Default Value is Admin]
    # CCD_DEBUG=<Debug on or off>         # [Optional, Default Value is off]
    You might, for example, change the values for your job to something like the following example:
    # Set the IBM Product Master installation directory here and uncomment the line  
    export TOP=/usr/IBM/mdmpim
    
    # Set the job related variables below as needed, uncomment the lines and do not modify anything else after this
    CCD_JOB_NAME=feed1        # [Required]
    CCD_JOB_TYPE=import       # [Required, Valid values are import|export|report]
    CCD_COMPANY_CODE=test     # [Optional, Default Value is trigo] 
    CCD_USERNAME=m            # [Optional, Default Value is Admin]
    CCD_DEBUG=on         			# [Optional, Default Value is off]
  3. Ensure that the new shell script is executable.
  4. Repeat this process until you have a script for each job that you plan to schedule with an external scheduler.