5. FILES › 5.3 DB2 Data Base Activity (DB2DSD) File › 5.3.3 Usage Considerations
5.3.3 Usage Considerations
This section identifies any special considerations or
techniques related to using the DB2DSD file. Additionally,
several sample retrieval examples are provided to facilitate
the use of this file.
In the examples, we use a SAS macro to specify the DD name
part of the CA MICS file name. These macros are a standard
part of CA MICS and are available for all files. The macro
name has the form _iiit, where "iii" is the Information Area
name and "t" is the Time-span. In addition, many of the
examples use the _fffSUM macro, where "fff" is the file
identifier, to summarize the data as indicated by the _BY and
_BREAK macro definitions.
Special Considerations/Techniques
1. The following data elements only have meaning when using
the DB2DSDnn file in the DETAIL time-span, in that they
loose significance once summarization has been
performed. These data elements should only be
referenced when using the DB2DSDnn file in the DETAIL
time-span.
DSDISEQ - Instrumentation Sequence Number
DSDDSTSN - Destination Sequence Number
DSDATNM - Active Trace Number Mask
2. Care must be exercised in using the special date and
time data elements contained in each CA MICS file. As
the file's granularity increases in higher Time-spans,
certain fields loose significance and should not be
referenced.
o HOUR should not be used in MONTHS and YEARS.
o DAY and DAYNAME should not be used in WEEKS, MONTHS,
or YEARS.
o WEEK should not be used in MONTHS or YEARS.
o MONTH should not be used in YEARS.
3. The data elements STARTTS and ENDTS have different
meanings when used in the DETAIL time-span versus their
meaning in the DAYS, WEEKS, MONTHS, and YEARS
time-spans. The ENDTS and STARTTS, when appearing in
the DAYS, WEEKS, MONTHS, and YEARS time-spans, indicate
the span of time over which the data has been summarized
with STARTTS indicating the lowest date and time and
ENDTS indicating the greatest date and time for the
summarized data.
Retrieval Examples
1. Plot the number of data sets concurrently open
throughout the day yesterday.
DATA TEST1;
SET _DB2D.DB2DSD01;
TIME=TIMEPART(ENDTS);
FORMAT TIME TIME8.;
PROC PLOT DATA=TEST1;
PLOT DSDDSOPN*TIME;
TITLE DB2 DATA SETS OPEN;
2. Print the number of automatic bind requests yesterday
during Zone 1 which failed.
DATA TEST2;
SET _DB2D.DB2DSD01;
IF ZONE=1;
PROC PRINT DATA=TEST2;
MACRO _BY DAY %
MACRO _BREAK DAY %
PROC SORT DATA=TEST2 OUT=TEST2; BY _BY;
DATA TEST2;
SET TEST2;
_DSDSUM;
DATA _NULL_;
SET TEST2;
FILE PRINT;
FAILED=DSDBINDA-DSDBIND;
PUT @51 'NUMBER OF FAILED BIND ATTEMPTS';
PUT @62 'IN ZONE 1';
PUT @63 FAILED;
STOP;