Previous Topic: 5.4.8.3 Usage Considerations

Next Topic: 5.4.9 Service Class Response Time (WLMSEM)

5.4.8.4 Retrieval Examples


This section presents a typical WLM_EC retrieval example.


In the examples, a SAS macro variable is used to specify the
DDname part of the CA MICS file name. These macro variables
are a standard part of CA MICS and are available for all
files. The macro variable name has the form &diiit, where d
is the database identifier, iii is the information area
name, and t is the timespan.  For the examples, a database
identifier of P is used.  The identifier is installation
dependent, so you should find out what the identifiers are at
your installation.


Report Class Resource Consumption

    TITLE1 "Report Class Resource Consumption";

    DATA WORK._EC1
     (KEEP=SYSPLEX WLMSDFNM WLMSDFTS SYSNAME
      WLMRPTCL WLMPOLCY WLMRPTDE ENDTS
      SECAVMPL SECCPUTM SECPSSRV SECPSINS);
      MERGE
        &PWLMX..WLM_EA01 (IN=_EA)
        &PWLMX..WLM_EC01 (IN=_EC);
      BY SYSID ENDTS WLMSDFNM WLMSDFTS
        WLMRPTCL WLMPOLCY;
      IF (_EA & _EC) THEN OUTPUT WORK._EC1;
    RUN;

    PROC SORT NODUPKEY OUT=WORK._EC2 DATA=WORK._EC1;
      BY SYSPLEX WLMSDFNM WLMSDFTS SYSNAME ENDTS
        WLMRPTCL WLMPOLCY;
    RUN;

    PROC PRINT LABEL DATA=WORK._EC2;
      BY SYSPLEX WLMSDFNM;
      ID SYSNAME ENDTS;
      VAR WLMRPTCL WLMPOLCY
        SECAVMPL SECCPUTM SECPSSRV SECPSINS;
    RUN;