Implementing the report

To make the new SYSCPU report available, it needs to be integrated in a Monitor III selection panel. As defined initially, the report shall be added to the User Selection menu ERB3USR. You can do this by these modifications to the definition of the panel:

Figure 1. Modifications in User Selection Menu Definition (ERB3USR) - Part 1
)attr default(!+_)
/***********************************************************************
/*          PANEL NAME: ERB3USR
/*

…

)body expand("") cmd(zcmd)
+          !         RMF User-written Report Selection Menu      " "
!Selection ===>_ZCMD " " +
+
<Enter selection number or command for desired report.
+
+
!  1<MSI            +Migration SYSINFO including Execution Velocity
!  2<DSD            +Detailed Storage Delays
!  3<RG             +Resource Group Data
!  4<SYSCPU         +Modified SYSINFO including CPU details 
+

…
Figure 2. Modifications in User Selection Menu Definition (ERB3USR) - Part 2
 /* translate subsystem selections ********************************* */
    &erbcmdc = trans(&erbcmdc
                   1,'MSI'
                   2,'DSD'
                   3,'RG'
                   4,'SYSCPU' 
                  ST,'SYSTREND'
                  DA,'DEVN'
                  DT,'DEVT'
                   *,*)
 /* Checks if command input is a valid RMF command.                  */
    ver(&erbcmdc,LIST, CANCEL, FIND, GRAPHIC, ICU, HARDCOPY, RESET,
        RFIND, TABULAR, TOGGLE,
        MSI, DSD, RG,  SYSCPU, 
        DEVN, DEVT, SYSTREND,
        MSG=ERB562I)
 /* Checks if command input is a valid on this screen.               */
    ver(&erbcmdc,LIST,;
        MSI, DSD, RG,  SYSCPU, 
        DEVN, DEVT, SYSTREND,
        MSG=ERB573I)

…

 /* selects action according to entered input ********************** */
    &zsel = trans(&erbcmdc
              MSI,'PGM(ERB3RDPC) PARM(MSI)'
              DSD,'PGM(ERB3RDPC) PARM(DSD)'
               RG,'PGM(ERB3RDPC) PARM(RG)'
           SYSCPU,'PGM(ERB3RDPC) PARM(SYSCPU)' 
             DEVN,'PGM(ERB3RDPC) PARM(DEVN)'
             DEVT,'PGM(ERB3RDPC) PARM(DEVT)'
         SYSTREND,'PGM(ERB3RDPC) PARM(SYSTREND)'
                *,' ')
)END

If you call the User Selection menu, you now get this new version:

Figure 3. Modified User Selection Menu (ERB3USR)
ERB3USR             RMF User-written Report Selection Menu
Selection ===>

Enter selection number or command for desired report.


  1 MSI             Migration SYSINFO including Execution Velocity
  2 DSD             Detailed Storage Delays
  3 RG              Resource Group Data
  4 SYSCPU          Modified SYSINFO including CPU details

Device Reports
 DA DEVN            Device Activity
 DT DEVT            Device Trend
                    Device   => _______

System Reports
 ST SYSTREND        System and Workload Trend
                    Workload => ________