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 STEP02 from the CMDCOLLD member of your CPMISC PDS, and edit it as follows:

//*
//*  Run MXG and IT Service Vision process and reduce steps
//*
//STEP02 EXEC SAS,WORK='42000,6300',
//       CONFIG='your.itsv.CPMISC(CMCONFIG)'
//DCOLLECT DD DSN=your.dcollect.data,DISP=(OLD,DELETE,KEEP)     #1
//SYSIN   DD DATA,DLM='$$'

  %CPSTART(MODE=BATCH,SYSTEM=MVS,                               #2
           ROOT='your.itsv.',
           ROOTSERV=,
           PDB='your.dcollect.pdb.',
           DISP=OLD,
           SHARE=N/A
           MXGSRC=('mxg.userid.sourclib' 'mxg.mxg.sourclib'),
           MXGLIB=mxg.mxg.formats,
           _RC=CPSTRC
           );
  %PUT CPSTART return code is &CPSTRC;                          #3

 

 %CMPROCES(,XDCBKUP XDCCAPD XDCCAPT XDCCLUS XDCDSET XDCMIGS XDCOLAG
            XDCOLBC XDCOLDC XDCOLDR XDCOLLB XDCOLMC XDCOLSC XDCOLSG
            XDCOLVL XDCVOLS,                                    
            COLLECTR=DCOLLECT,TOOLNM=MXG,                       #4            
            _RC=cmprrc);
 %PUT CMPROCES return code is &cmprrc;                         

Notes:

  1. Allocates the DCOLLECT dataset that is created by running DCOLLECT.

    For details see, Section 1, Task 2: Start Your Data Collector Software.

  2. Invokes the IT Service Vision %CPSTART macro and references your PDB for DCOLLECT data. The PDB= parameter is set to the name (high-level-qualifiers) that you used for the new PDB.

  3. This prints the value of the %CPSTART macro's return code, stored in CPSTRC.

  4. Runs %CMPROCES to process the DCOLLECT raw data.

    Note that this execution of the %CMPROCES macro lists all DCOLLECT tables. Leaving this list blank would process all DCOLLECT tables already in your PDB that have a Kept status of Yes.

    Edit the table list to contain XDCVOLS XDCDSET XDCCAPT XDCCAPD.

  5. This prints the value of the %CMPROCES return code, stored in CMPRRC.