Previous Topic: 5.4.7.3 Usage Considerations

Next Topic: 5.4.8 Report Class Resource Consumption File (WLM_EC)

5.4.7.4 Retrieval Examples


This section presents a typical WLMSEC 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.

Service Class Resource Consumption

    TITLE1 "Service Class Resource Consumption";

    DATA WORK.SEC1
     (KEEP=SYSPLEX WLMSDFNM WLMSDFTS SYSNAME
      WLMCLASS WLMCLSPD WLMPOLCY WLMCLSDE ENDTS
      SECAVMPL SECCPUTM SECPSSRV SECPSINS);
      MERGE
        &PWLMX..WLMSEA01 (IN=SEA)
        &PWLMX..WLMSEC01 (IN=SEC);
      BY SYSID ENDTS WLMSDFNM WLMSDFTS
        WLMCLASS WLMCLSPD WLMPOLCY;
      IF (SEA & SEC) THEN OUTPUT WORK.SEC1;
    RUN;

    PROC SORT NODUPKEY OUT=WORK.SEC2 DATA=WORK.SEC1;
      BY SYSPLEX WLMSDFNM WLMSDFTS SYSNAME ENDTS
        WLMCLASS WLMCLSPD WLMPOLCY;
    RUN;

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