| Section
1, Task 3: Create a Test PDB and
Process, Reduce, and Report on Data Action 3: Process your data into a test PDB Step c: Tailor this step for your collector |
|
Use part of the LOAD job step in member CMJCLLD in your CPMISC PDS, and edit it as follows:
//LOAD EXEC SAS,COND=(0,LT,BACKUP), #1
// WORK='10500,2000', #2
// CONFIG='your.sasitsv.CPMISC(CMCONFIG)' #3
//SMF DD DSN=your.smf.data,DISP=SHR #4
//SYSIN DD DATA,DLM='$$'
*------------------------------------------------------------*
* You must execute %CPSTART to run IT Service Version. This *
* macro initiates IT Service Vision and allocates the PDB. *
* The MXGLIB= parameter is required whenever your PDB *
* contains tables processed with MXG. The MXGSRC= parameter *
* is required only if you use %CMPROCES with MXG in this *
* job step. 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. *
*------------------------------------------------------------* ;
/* verify root= pdb= mxglib= mxgsrc= in the following macro */
%CPSTART(MODE=BATCH, #5
SYSTEM=MVS, #6
ROOT=your.sasitsv., #7
ROOTSERV=, #8
PDB=your.newpdb., #9
DISP=OLD, #10
SHARE=N/A , #11
MXGLIB=mxg.mxg.formats, #12
MXGSRC=('mxg.userid.sourclib' 'mxg.mxg.sourclib'), #13
_RC=cpstrc #14
);
%PUT CPSTART return code is &cpstrc; #15
*------------------------------------------------------------*
* The %CMPROCES macro processes data into the PDB that was *
* established by the %CPSTART macro above. *
* As no table list is specified as the second parameter all *
* the tables in the PDB for this collector with a table kept *
* indicator of YES will be processed. *
* TOOLNM=SMF and COLLECTR=MXG parameters must be specified. *
* If the _RC= parameter is nonzero from %CMPROCES, *
* check the explanatory message in the SAS log. *
*------------------------------------------------------------* ;
%CMPROCES(, #16
COLLECTR=SMF, #17
TOOLNM=MXG, #18
_RC=cmprrc #19
);
%PUT CMPROCES return code is &cmprrc;
Notes:
COND=(0,LT,BACKUP),
from this job step card if you have removed the BACKUP job step.
SMF for the COLLECTR= parameter means that data
were collected by SMF (after being logged by DB2). For the complete syntax of the %CMPROCES macro, see the Macro Reference documentation for IT Service Vision.