Example 2: Using the SPMNMBR data set to monitor space

In this example, SPMNMBR input data set is used to run Space Monitor.

Figure 2 presents an example of a job in which the SPMNMBR input data set is used to monitor several IMS full-function database data sets and DEDB data sets.

The input control statements are the same as in Example 1: Using the SPMNIN data set to monitor space, and they are specified in the member APPL01 of the SPMN.MEMBER partitioned data set. Figure 1 presents an example of an IEBUPDTE utility job in which the member APPL01 is added to the data set SPMN.MEMBER.

Figure 1. Space Monitor example 2: Creating a member on SPMNMBR data set
//FPPROC  EXEC  PGM=IEBUPDTE,PARM=NEW
//SYSPRINT DD SYSOUT=A
//SYSUT2   DD DSN=SPMN.MEMBER,DISP=OLD
//SYSIN   DD  DATA,DLM=@@
./ ADD  NAME=APPL01,LIST=ALL
*        1         2         3         4         5         6         7
*...+....0....+....0....+....0....+....0....+....0....+....0....+....0..
* IMS DL/I DATABASE DATA SET GROUP FOR APPL01
*-DBD--* *-DD---* *-DATA SET NAME ---------------------------* AABBB CC
DSSCHHVN DSSCHHV0 SAMPLE.DSSCHHV0                              13 20  7
DSFACHON DSFACHO0 SAMPLE.DSFACHO0
DSCRSDVN DSCRSDV0 SAMPLE.DSCRSDV0                              13 20  7
DSCRSDVN DSCRSDV1 SAMPLE.DSCRSDV1
DSCLSDVN DSCLSDV0 SAMPLE.DSCLSDV0
*
*        1         2         3         4         5         6         7
*...+....0....+....0....+....0....+....0....+....0....+....0....+....0..
* IMS DEDB AREA DATA SET GROUP FOR APPL01
*-N/A--* *-N/A--* *-DATA SET NAME ---------------------------* AABBB CC
                  SAMPLE.DB01AR01
                  SAMPLE.DB01AR02
                  SAMPLE.DB02AR01
                  SAMPLE.DB02AR02
                  SAMPLE.DB02AR03
@@
//*
Figure 2. Space Monitor example 2: Using the SPMNMBR data set to monitor space
//SPMN     EXEC SPMN,
//             MEMBER=APPL01,                  FOR MEMBER NAME
//             SPMNMBR=’SPMN.MEMBER’           FOR SPMNMBR DS
//*