On Tue, 29 Jul 2008 08:14:36 -0700, Walter Marguccio wrote: >Hello list, > >I'm trying to produce some statistics for batch jobs using SMF type 30 record. >From my daily SMF data I extract only type 30 records, subtype 5, and work- type (SMF30WID) = JES2. >The statistics provide what I want, but some jobs appears four time in the list; all the four rows are >identical to one another. > >Any clue as to why, or how to obtain one entry only per job ? > >TIA. > > Walter Marguccio >
Use the following to determine whether the SMF record is the first for the job,
or a subsequent record for that same job. From z/OS SMF, topic Type 30:
-=-=-=-=-=-=-=-
Note: The following rules apply to all subtypes (except subtype 1). When
examining a type 30 record:
o A record is the first record if at least one of the following fields
is non-zero:
- SMF30AON
- SMF30ARN
- SMF30CON
- SMF30DRN
- SMF30OON
- SMF30PON
- SMF30RON
- SMF30TON
- SMF30UON
o A record is an additional record if the following fields are all zero:
- SMF30AON
- SMF30ARN
- SMF30CON
- SMF30DRN
- SMF30OON
- SMF30PON
- SMF30RON
- SMF30TON
- SMF30UON
o In either a first or additional record:
- there are more records to follow if at least one of the following
fields is non-zero:
- SMF30EOS
- SMF30MOS
- SMF30OPM
- SMF30RMS
- SMF30UDS
- this is the last record if the following fields are all zero:
- SMF30EOS
- SMF30MOS
- SMF30OPM
- SMF30RMS
- SMF30UDS
-=-=-=-=-=-=-=-
Sounds like your logic will work just fine if you exclude all the "additional
records" for the job. Or, if you are actually trying to process all of the
EXCP
data for example, then enhance your logic to combine all of the separate
records for the job together within your program.
Brian
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

