7. PARAMETERS › 7.2 Complex Level Parameters › 7.2.2 Account Code Specification Exits
7.2.2 Account Code Specification Exits
The CA MICS Batch and Operations Analyzer enables you to set
account codes at the step and interval record, job, spool, or
combinations of all three levels. The ACCTNOx account code
data elements are the highest level summarization keys, after
SYSID, in the Batch information area files. You have the
flexibility to set the same ACCTNOx values for all file
observations generated for all address space types.
The ACCTNOx values can optionally be set differently for each
program step, interval record, or output writer (BATSPL)
observation. Most accounting schemes use the account fields
from the job card and/or RACF values to set global ACCTNOx
values.
Account code value specification occurs when all SMF record
types for each address space type are merged together.
The transaction records for APPC/MVS TPs are processed in a
separate data step. Setting ACCTNOx values for APPC/MVS TP
transaction records is discussed in Section 7.2.3.
CA MICS merges the different SMF record types for each z/OS
address space by Reader Time Stamp (RDRTS) and Job Name
(JOB). Each time a new RDRTS and JOB combination is
encountered, the global account code exit routine (ACCTRTE)
is executed. This means ACCTRTE is only invoked once for each
RDRTS and JOB combination. The code in ACCTRTE sets the
ACCTNOx account code retained values for every observation.
User exit USRSPGM can be used to override the global ACCTNOx
values for one or more individual step or interval records.
USRSPGM is invoked once for each step or interval record
encountered. User exit USRSSPL can also be used to override
ACCTNOx values for one or more individual output writer
records. USRSSPL is invoked for each output writer record
associated with the address space, meaning the current RDRTS
and JOB combination being processed.
As an example, consider a job with three step records (batch)
and two output writer records. CA MICS executes a merge
statement to move the first of each SMF record type
encountered for the RDRTS and JOB combination of the current
job into the SAS input buffer. Since this is the first time
records for this job are encountered, ACCTRTE is invoked.
After the global ACCTNOx values are set, a BATJOB observation
is written along with three BATPGM observations, and two
BATSPL observations.
The following sections explain global, step level, and spool
level account code specification.
1 - Global Account Code Exit Routine (ACCTRTE)
2 - Step Level Account Code Specification
3 - Spool Level Account Code Specification