Advanced Setup for DB2 (with data from TMON for DB2) | |
From the IT Service Vision server's main menu, select
PDB Admin -> Config Active PDB Dictionary -> Actions -> Add Table...
You may want to search this list for TMON DB2 specific tables by selecting Filter List: and then by typing
upcase(TABLENM) ? 'XTMD'
and selecting OK. IT Service Vision displays a list that includes these tables:
Table | Description |
XTMDBA | TMON for DB2 set current sqlid |
XTMDBB | TMON for DB2 end of identify |
XTMDBC | TMON for DB2 end of signon |
XTMDBD | TMON for DB2 authorization failure |
XTMDBDA | TMON for DB2 interval stats (V1 only) |
XTMDBDB | TMON for DB2 thread detail (V1 only) |
XTMDBDE | TMON for DB2 exception (V1 only) |
XTMDBDR | TMON for DB2 thread resource (V1 only) |
XTMDBE | TMON for DB2 grant and revoke |
XTMDBF | TMON for DB2 ddl on audited object |
XTMDBG | TMON for DB2 first write on audited obj |
XTMDBH | TMON for DB2 first read on audited obj |
XTMDBI | TMON for DB2 dml on audited object |
XTMDBJ | TMON for DB2 utility start |
XTMDBK | TMON for DB2 utility change |
XTMDBL | TMON for DB2 utility end |
XTMDBM | TMON for DB2 distributed authid trans |
XTMDBT | TMON for DB2 sql trace |
XTMDDAB | TMON for DB2 interval stats - buff pool |
XTMDDAF | TMON for DB2 interval stats - ddf |
XTMDDA2 | TMON for DB2 interval statistics |
XTMDDBB | TMON for DB2 thread detail - buffer pool |
XTMDDBF | TMON for DB2 thread detail - ddf |
XTMDDBK | TMON for DB2 thread detail - package |
XTMDDBR | TMON for DB2 thread detail - resource |
XTMDDB2 | TMON for DB2 thread detail |
XTMDDC | TMON for DB2 TMDBDC |
XTMDDD | TMON for DB2 TMDBDD |
XTMDDE2 | TMON for DB2 exception log |
XTMDDF | TMON for DB2 unknown |
XTMDDW | TMON for DB2 db2/irlm message |
(Additional table definitions may be added in future releases.)
The JCL to load this data into a PDB is in the CMTMDBLD member member of CPMISC PDS, depending on the version of The Monitor for DB2 in use. Each of these members basically does the following:
Copy member CMTMDBLD or CMTMD2LD from the CPMISC library into your own JCL library. The following is an annotated listing of the CMTMDBLD job.
//CMTMDBLD JOB (accounting info),'Load TMON DB2 data', #1 // REGION=32M,NOTIFY= //* . . #2 . //* //STEP01 EXEC SAS,WORK='42000,6300', #3 // CONFIG='your.sascpe.CPMISC(CMCONFIG)' #4 //SASLIB DD DSN=your.tmonexit.loadlib,DISP=SHR #5 //TMDBIN DD DSN=your.tmon.DB2.log,DISP=SHR #6 //SYSIN DD DATA,DLM='$$' *------------------------------------------------------------* * SAS/CPE will not run unless %CPSTART has been executed. * * %CPSTART allocates IT Service Vision software and the PDB. * * The MXGLIB= and MXGSRC= parameters are required for the * * MXG software tool used within %CMPROCES below. * * The ROOTSERV= and SHARE= parameters should only be used if * * SAS/SHARE is being used with IT Service Vision. * * If the _RC= parameter is nonzero from %CPSTART, * * check the explanatory message in the SAS log. * *------------------------------------------------------------* ; %CPSTART(MODE=BATCH,SYSTEM=MVS, #7 ROOT='your.sascpe.',ROOTSERV=, #8 PDB='your.tmon.pdb', #9 DISP=OLD,SHARE=N/A, #10 MXGLIB=mxg.mxg.formats, #11 MXGSRC=('mxg.userid.sourclib' 'mxg.mxg.sourclib'), #12 _RC=cpstrc #13 ); %PUT CPSTART return code is &cpstrc; #14 *------------------------------------------------------------* * Run MXG to process Landmark The Monitor for CICS data * * into SAS data sets. * *------------------------------------------------------------* ; RUN; *------------------------------------------------------------* * The %CMPROCES macro processes data into the PDB that was * * established by the %CPSTART macro above. * * TOOLNM=SASDS and COLLECTR=GENERIC must be specified. * * Only tables specified as the second parameter will be * * processed in this example. * * If the _RC= parameter is nonzero from %CMPROCES, * * check the explanatory message in the SAS log. * *------------------------------------------------------------* ; %LET cmprrc=.; #15 %CMPROCES(, [list of tables] , #16 COLLECTR=TMONDB2,TOOLNM=MXG, #17 _RC=cmprrc ); %PUT CMPROCES return code is &cmprrc; *------------------------------------------------------------* * The following reduces data in the current PDB detail level * * into the day, week, month and year reduction levels. * * The variables and statistics to be kept are defined * * in the data dictionary. * * If the _RC= parameter is nonzero from %CPREDUCE * * check the explanatory message in the SAS log. * *------------------------------------------------------------* ; %CPREDUCE(,_RC=cpredrc); #18 %PUT CPREDUCE return code is &cpredrc; #19 $$ //
Notes:
your.tmonexit.loadlib
to the name of the load library where
the TMONEXIT utility resides. your.tmon.DB2.log
to the dataset name of your TMON DB2
log data. The TMDBIN DD statement points to your
TMON DB2 log data, which is probably on tape (in
which case you will need to use additional
parameters to meet your site's requirements). IT Service Vision can run under more than one operating system. This identifies the operating system on which it runs.
The SHARE= parameter is only used if you are running with SAS/SHARE. It is not used in this example.
For the list of tables provided in the second parameter (preceded with a comma), IT Service Vision automatically adds the table definitions from the master data dictionary to the PDB's data dictionary, if needed.
Only data for the list of specified tables will be processed in this run.
Note: If you do not specify a list of tables, the %CMPROCES macro processes data for all generic tables that are defined in the DB2 test PDB's data dictionary and that have KEPT=Y set.