SMFDEVS Coding Examples
The following SMFDEVS keyword definitions will show you how to use this feature.
micsrm140cd
Example 1
ELEMENTDEF 359 LABEL 3590 DEVICECLASS TAPE DEVICETYPE 131 TIMESPAN Y Y N N N FILES JOB PGM ; ELEMENTDEF 349 LABEL 3590E DEVICECLASS TAPE DEVICETYPE 129 ;
Generated data elements and their labels for the first set of keyword specifications:
- Job Level
- JOBEZ359 - 3590 EXCPS
- JOBCZ359 - 3590 Device Connect Time
- JOBNZ359 - 3590 Devices Allocated
- JOBAZ359 - 3590 Data Set Allocations
- Program or Step Level
- PGMEZ359 - 3590 EXCPS
- PGMCZ359 - 3590 Device Connect Time
- PGMNZ359 - 3590 Devices Allocated
- PGMAZ359 - 3590 Data Set Allocations
Note:
Data elements will be active only in DETAIL and DAYS timespans in the BATJOB and BATPGM files.Generated data elements and their labels for the second set of keyword specifications:
- Job Level
- JOBEZ349 - 3590E EXCPS
- JOBCZ349 - 3590E Device Connect Time
- JOBNZ349 - 3590E Devices Allocated
- JOBAZ349 - 3590E Data Set Allocations
- Program or Step Level
- PGMEZ349 - 3590E EXCPS
- PGMCZ349 - 3590E Device Connect Time
- PGMNZ349 - 3590E Devices Allocated
- PGMAZ349 - 3590E Data Set Allocations
Note:
Data elements will be active for ALL timespans in ALL job and step level files.Example 2
ELEMENTDEF 331 LABEL 3330-11 DEVICECLASS DASD DEVICETYPE 013 ;
Generated data elements and their labels:
- Job Level
- JOBEZ331 - 3330-11 EXCPS
- JOBCZ331 - 3330-11 Device Connect Time
- JOBNZ331 - 3330-11 Devices Allocated
- JOBAZ331 - 3330-11 Data Set Allocations
- Program or Step Level in all files
- PGMEZ331 - 3330-11 EXCPS
- PGMCZ331 - 3330-11 Device Connect Time
- PGMNZ331 - 3330-11 Devices Allocated
- PGMAZ331 - 3330-11 Data Set Allocations
Note:
Data elements will be active for ALL timespans in ALL job and step level files.Example 3
ELEMENTDEF MIC DEVICECLASS DASD LABEL MICSDASD DEVICEADDRESS 2E04 2E51 2E74 2111 212E 2158 26D0 27B1 27C0 DEVICEADDRESS 27C3,27C4,27C5,27C1,27C2,294F,2E04,2E51,3401 DEVICEADDRESS 3411 3414 3421,37C4,3431,3439,3404,3408,3428 TIMESPAN Y N N N N ;
Generated data elements and their labels:
- Job Level
- JOBEZMIC - MICSDASD EXCPS
- JOBCZMIC - MICSDASD Device Connect Time
- JOBNZMIC - MICSDASD Devices Allocated
- JOBAZMIC - MICSDASD Data Set Allocations
- Program or Step Level
- PGMEZMIC - MICSDASD EXCPS
- PGMCZMIC - MICSDASD Device Connect Time
- PGMNZMIC - MICSDASD Devices Allocated
- PGMAZMIC - MICSDASD Data Set Allocations
Note:
Data elements will be active only in the DETAIL ALL job and step level files.Example 4
ELEMENTDEF MIC DEVICECLASS DASD LABEL MICSDASD DEVICEADDRESS 2E04-2E51 2E74-2111 212E-2158 26D0 27B1 DEVICEADDRESS 27C0-27C5,294F,2E04,2E51,3401 DEVICEADDRESS 3408-3439,37C4 ;
Generated data elements and their labels:
- Job Level
- JOBEZMIC - MICSDASD EXCPS
- JOBCZMIC - MICSDASD Device Connect Time
- JOBNZMIC - MICSDASD Devices Allocated
- JOBAZMIC - MICSDASD Data Set Allocations
- Program or Step Level
- PGMEZMIC - MICSDASD EXCPS
- PGMCZMIC - MICSDASD Device Connect Time
- PGMNZMIC - MICSDASD Devices Allocated
- PGMAZMIC - MICSDASD Data Set Allocations
Note:
This example shows demonstrates how the range specifications and single specification can be used in the DEVICEADDRESS specification.Example 5
ELEMENTDEF 331 LABEL 3330-11 DEVICECLASS DASD DEVICETYPE 013 MAXDEF 1 ;
Generated data elements and their labels:
- Job Level
- JOBEZ331 - 3330-11 EXCPS
- JOBCZ331 - 3330-11 Device Connect Time
- JOBNZ331 - 3330-11 Devices Allocated
- JOBAZ331 - 3330-11 Data Set Allocations
- JOBMXZA1 - Max 3330-11 DSN Allocations
- JOBMXZN1 - Max 3330-11 Device Allocations
- Program or Step Level in all files
- PGMEZ331 - 3330-11 EXCPS
- PGMCZ331 - 3330-11 Device Connect Time
- PGMNZ331 - 3330-11 Devices Allocated
- PGMAZ331 - 3330-11 Data Set Allocations
- PGMMXZA1 - Max 3330-11 DSN Allocations
- PGMMXZN1 - Max 3330-11 Device Allocations
Note:
Data elements will be active for ALL timespans in ALL job and step level files.Example 6
ELEMENTDEF 331 DEVICECLASS DASD DEVICETYPE 013 MAXDEF 1 ;
Generated data elements and their labels:
- Job Level
- JOBEZ331 - 331 EXCPS
- JOBCZ331 - 331 Device Connect Time
- JOBNZ331 - 331 Devices Allocated
- JOBAZ331 - 331 Data Set Allocations
- JOBMXZA1 - Max 1 DSN Allocations
- JOBMXZN1 - Max 1 Device Allocations
- Program or Step Level in all files
- PGMEZ331 - 331 EXCPS
- PGMCZ331 - 331 Device Connect Time
- PGMNZ331 - 331 Devices Allocated
- PGMAZ331 - 331 Data Set Allocations
- PGMMXZA1 - Max 1 DSN Allocations
- PGMMXZN1 - Max 1 Device Allocations
Note:
Data elements will be active for ALL timespans in ALL job and step level files.