Chapter 11. z/OS data feeds and discovery 375
Preparing the TBSM database
Preparing the TBSM database requires the following steps:
? Insert the BATCH SCHEDULE SET object on the console.
? Define the mapping of batch schedules.
In this section, we define which applications should be monitored and how these
applications should be grouped. Perform the following steps:
1. Define the dynamic path where you want to put the batch job objects from
TWS. Our definition was created in the OPC_Class_Definition.sqi file shown
in Example 11-8.
Example 11-8 Dynamic object path for Tivoli LOB
include(BusinessObject.sqi)
BEGIN_DYNA_OBJ_PATH(OPC, Group all OPC backup processes)
DYNA_OBJ_PATH(BUSC,BUSC)
DYNA_OBJ_PATH(ENT,ITSO)
DYNA_OBJ_PATH(COMP,Poughkeepsie)
DYNA_OBJ_PATH(BCYS,BACKUPSYSTMS, OPC backup applications for Backup
Batch)
DYNA_OBJ_PATH(BTCY,BACKUPSYSTMS, OPC backup applications for Backup
Batch)
END_DYNA_OBJ_PATH(OPC)
BEGIN_DYNA_OBJ_PATH(OPC LOB, Group all OPC LOBs)
DYNA_OBJ_PATH(LOBC,LOBC)
DYNA_OBJ_PATH(LOB,OPC Applications)
DYNA_OBJ_PATH(BCYS,BACKUPSYSTMS, OPC backup applications for His Company
Backup Batch)
DYNA_OBJ_PATH(BTCY,BACKUPSYSTMS, OPC backup applications for His
Company Backup Batch)
END_DYNA_OBJ_PATH(OPC LOB)
2. Define the file selection filter for the individual batch jobs that will be matched
with the dynamic path that we defined. Our definition was created in the
OPC_Appl_Definition.sqi file shown in Example 11-9.
Example 11-9 Pattern matching for OPC dynamic path
include(BusinessObject.sqi)
OPC_APP_PATTERN(OPC, ITSO.BATCH, %SAMPLE[A-Z]%, %, %)
OPC_APP_PATTERN(OPC LOB, ITSO.BATCH, %SAMPLE[A-Z]%, %, %)
3. Pre-process the sqi file using the clsql script and run the resulting sql files.
We used the shell script shown in Example 11-10 on page 376 to perform this
function.