Scenario 9: Using variable tables
This scenario shows how you use variable tables to:
- Change the behavior of jobs and job streams based on why they are scheduled to run. For example, you can create a job that runs different commands for different operating systems.
- Change the behavior of jobs and job streams based on when they are scheduled to run, that is, on which days they run.
Commands used in the scenario in their run sequence:
- "composer disp vartable=SMPL_VAR_TABLE_9_0_?" (display)
- "composer disp vartable=MAIN_TABLE" (display)
- "composer disp job=SMPL_JOB_9_1_1" (display)
- "composer disp sched=SMPL_SCHED_9_1_1" (display)
- "conman sj SMPL_SCHED_9_1_1(1000).SMPL_JOB_9_1_1;info (showjobs)
- "conman sj SMPL_SCHED_9_1_1(1200).SMPL_JOB_9_1_1;info (showjobs)
Because the production plan has already been generated, you can
see the following results:
- The job stream added for the run cycle associated to the SMPL_VAR_TABLE_9_0_2 variable table contains the SMPL_JOB_9_1_1 job that launches the default command.
- The job stream added for the run cycle associated to the SMPL_VAR_TABLE_9_0_1 variable table contains the SMPL_JOB_9_1_1 job that launches the command specified within the variable table.