Reporting on DCOLLECT Data

Table Of ContentsIT Service Vision Help


Follow this path from the main menu:

   Reports -> Supplied Reports

IT Service Vision displays the supplied report definitions that are based on the tables in your PDB. To see the supplied report definitions for DCOLLECT data, follow this path from the list of supplied report definitions:

   Edit -> Sort -> Table

IT Service Vision displays the list sorted by table name. Scroll to the report definitions whose table names begin with the characters 'XDC'. (The table names begin 'XDC' and the corresponding supplied report definitions begin 'DC'.) See Shared Appendix 7: Supplied Report Naming Convention and MVS Appendix 1: Tables and Variables Naming Convention for more information.

Report definitions that are based on groups and provide summaries of disk usage or of dataset space require additional setup before they can be used to generate reports. (These report definitions are listed later in this section.) The setup must be done at your site because the setup involves grouping volumes and datasets appropriately for your site.

You must provide formula variables to define these groups based on the disk and dataset naming conventions at your site. Formula variables are variables whose values are calculated (from the values of other variables and from constants) when you access the data. Formula variables do not occupy disk space in the PDB. The following examples show you various automated and "manual" methods that you can use to define the formula variables.

You may want to include the code that defines the formula variables (including the creation of a format, when applicable) at the beginning of the daily job production job so that the values of the formula variables are always current. Check the "manual" definitions of formula variables periodically and update them as necessary to keep them current.

Note: Some of these techniques make use of the search path for formats. In IT Service Vision on the server host, the default search path for formats is

   DICTLIB.CPFMTS ->
   SITELIB.CPFMTS ->
   PGMLIB.CPFMTS ->
   WORK.FORMATS ->
   LIBRARY.FORMATS ->

Reporting (via XUSEGRP) on Disk Usage

The supplied reports named DCSPPIES, DCSPUSES, DCSPCAUS, and DCALSPCS use table XDCVOLS and assume that XDCVOLS has a grouping variable named XUSEGRP. The supplied report named DCELGMGS runs on table XDCCAPD and assumes that XDCCAPD has a grouping variable named XUSEGRP. Because XUSEGRP is based on the disk volumes at your site, it is not a supplied variable. You need to define XUSEGRP for both tables before running these reports. This section will walk you through the steps to define it.

It is typical to define XUSEGRP as a formula variable. After you have the XUSEGRP formula variable defined in these tables, you can also use it in a WHERE expression as applicable. For instance, if you want to report only on system disks, you can use XUSEGRP in a local or global WHERE expression like this:

   XUSEGRP = 'SYS'

You can add formula variables to PDB tables using the IT Service Vision %CPDDUTL macro or the IT Service Vision server interactive interface. It is generally preferable to use the %CPDDUTL macro for your production PDB because the macro documents what you did exactly and enables you to add the variables to multiple tables easily and accurately.

To use the %CPDDUTL macro, you must be running IT Service Vision on the server host. Then follow these steps:

  1. If your PROGRAM EDITOR window has pull-down menus, select Globals, Command, and Command Line.

    Note: For more information about the PROGRAM EDITOR window and about pull-down menus and command lines, see Shared Appendix 2: Navigating SAS Windows.

  2. Starting at the first line in the body of the PROGRAM EDITOR window, type in a program like one of these:

  3. Look for the longest literal value that you assigned to the XUSEGRP variable (or the $USEGRP format). If it is longer than the value of LENGTH, increase the value of LENGTH to the number of characters in that literal.

  4. Before submitting this program, save a copy of it for use in a later step. On your PROGRAM EDITOR window's command line, type
       SAVE SASUSER.SAVE.XUSEGRP1.SOURCE

    and press ENTER or RETURN.

  5. To submit the program, on your PROGRAM EDITOR window's command line, type SUBMIT and then press ENTER or RETURN.

  6. To examine the effect of defining the XUSEGRP formula variable in the XDCVOLS table, follow this path from the IT Service Vision main menu:
       PDB Data -> Examine PDB Data ->
       XDCVOLS -> ItemActions ->
       Browse Data or View Data

    Note: You can also browse the data by using other methods. For more information, see MVS Appendix 4: Alternate Data Browsing Method.

  7. To copy the program back to the PROGRAM EDITOR window, on your PROGRAM EDITOR window's command line type
       COPY SASUSER.SAVE.XUSEGRP1.SOURCE

    and press ENTER or RETURN.

  8. Edit the program to change occurrences of table name XDCVOLS to table name XDCCAPD, to change occurrences of variable name DCVVOLS to variable name UCVOLSR, and to change entry name XUSEGRP1 to entry name XUSEGRP2.

  9. Again, save a copy of it in case you need it another time. On your PROGRAM EDITOR window's command line, type
       SAVE SASUSER.SAVE.XUSEGRP2.SOURCE

    and press ENTER or RETURN.

  10. Submit the revised program. It will add formula variable XUSEGRP to table XDCCAPD.

  11. Examine the effect of defining the XUSEGRP formula variable in the XDCCAPD table. For details, see the corresponding step for the XDCVOLS table.

Note: Using the interactive interface, you can edit the formula if you want to construct the values in a different way. For more about the construction of formula variables, follow this path from the main menu:

   Help -> Help Index ->
   formula variable table calc -> ItemActions ->
   Browse Help

Similarly, you can edit the $USEGRP format if you want to construct the values in a different way. For more about the construction of user-written formats, see Chapter 18, "The Format Procedure" in SAS Procedures Guide, Version 6, Third Edition.

For more information about the %CPDDUTL macro, follow this path from the IT Service Vision main menu:

   Help -> Help Index ->
   CPDDUTL macro dictionary utility ->
   ItemActions -> Browse Help

Note that the Help Index also has a help entry for each of the CPDDUTL control statements and for the %CPCAT source catalog utility. Also, you can see an example of the use of %CPDDUTL in the Macro Reference documentation for IT Service Vision.

Reporting (via PROJECT) on Dataset Space

You are likely to want to look at dataset space information based on some kind of grouping, like project. Because the grouping variable would be based on the projects at your site, it is not a supplied variable. You must define it based on your site's reporting needs. This section will walk you through the steps to define a grouping variable named PROJECT.

It is typical to define PROJECT as a formula variable. After you have the PROJECT formula variable defined in the XDCDSET table, you can use it in a WHERE expression when applicable. For instance, if you want to report only on the RPS project, you can specify a simple local or global WHERE expression like this:

   PROJECT = 'RPS'

or

   PROJECT = 'REDESIGN PRODUCTION SYSTEM'

depending on the way that you set up the PROJECT formula variable.

You can add formula variables to PDB tables using the IT Service Vision %CPDDUTL macro or the IT Service Vision interactive interface on the server host. It is generally preferable to use the %CPDDUTL macro for your production PDB because the macro documents what you did exactly and enables you to add the variables to many tables easily and accurately. The %CPDDUTL macro can be run interactively or in batch/background.

For you to use the %CPDDUTL macro interactively, you must be running IT Service Vision on the server host. Then follow these steps:

  1. If your PROGRAM EDITOR window has pull-down menus, select Globals, Command, and Command Line.

    Note: For more information about the PROGRAM EDITOR window and pull-down menus and command lines, see Shared Appendix 2: Navigating SAS Windows.

  2. Starting at the first line in the body of the PROGRAM EDITOR window, type in a program like one of these:

  3. To submit the program, at your PROGRAM EDITOR window's command line, type SUBMIT and then press ENTER or RETURN.

  4. To examine the effect of defining the formula variable, follow this path from the IT Service Vision main menu:
       PDB Data -> Examine PDB Data ->
       XDCDSET -> ItemActions ->
       Browse Data or View Data

    You can use the menu items under the View pull-down menu to view the PROJECT values for each observation. (You can also use other methods to browse the data. For more information, see MVS Appendix 4: Alternate Data Browsing Method.)

Note: If you have write access to the PDB, you can edit the formula if you want to construct the values in a different way. For more information about the construction of formula variables, follow this path from the main menu:

   Help -> Help Index ->
   formula variable table calc -> ItemActions ->
   Browse Help

Similarly, you can edit the $CPPROJ format if you want to construct the values in a different way. For more information about the construction of user-written formats, see Chapter 18, "The FORMAT Procedure" in SAS Procedures Guide, Version 6, Third Edition.

For more information about the %CPDDUTL macro, follow this path from the IT Service Vision main menu:

   Help -> Help Index ->
   CPDDUTL macro dictionary utility ->
   ItemActions -> Browse Help

Note that the Help Index also has a help entry for each of the CPDDUTL control statements and for the %CPCAT source catalog utility. Also, you can see an example of the use of %CPDDUTL in the section "Example of %CPDDUTL" in the Macro Reference documentation for IT Service Vision.