Previous Topic: 4.3.1.4.1 Algorithm Specification Worksheets

Next Topic: 4.3.1.5 Qualifying Algorithms

4.3.1.4.2 Algorithm Specification Examples

DIRECT ASSIGNMENT ALGORITHM EXAMPLE

In the example shown in Figure 4-23, the three CPUs that are
in use are to be charged differently because each processor
operates at a different speed.  The Batch Job Journal File is
being used.  The rate for EXCPs changes from $0.10 to $0.15
on 01/01/96.



RATE TABLE - DIRECT ASSIGNMENT ALGORITHM EXAMPLE DATA BASE UNIT IDENTIFIER: P_________ Journal Algorithm Description Comp Rate Effective Charging Element Description File ID Code Date ACTJBJ______ CPA_____ CPUA Algorithm__________________ 0022_____ .03______ _________ Job CPU Time Consumed_________ 0097_____ .10______ _________ Job Total EXCPs_______________ 0097_____ .15______ 01/01/96_ Job Total EXCPs_______________

ACTJBJ______ CPB_____ CPUB Algorithm___________________ 0022_____ .0035____ _________ Job CPU Time Consumed_________ 0097_____ .10______ _________ Job Total EXCPs_______________ 0097_____ .15______ 01/01/96_ Job Total EXCPs_______________ ACTJBJ______ CPC_____ CPUC Algorithm___________________ 0022_____ .04______ _________ Job CPU Time Consumed_________ 0097_____ .10______ _________ Job Total EXCPs_______________

0097_____ .15______ 01/01/96_ Job Total EXCPs_______________ ___________________________________________________________________________________________________________________________________


Figure 4-23.  Direct Assignment Algorithm Example
CONTROL VARIABLE ALGORITHM EXAMPLE

In the example shown in Figure 4-24, it is assumed that
transaction accounting is to be done for CICS running on two
processors.  Since it must be charged differently for each
processor, two algorithms, ATM and CIF, are used.

The control variable for both systems is CICAPU.  CICAPU is
assigned from the CICS Analyzer TRANCODE variable in the
CICAURT routine.  All CICAPU values listed in the example
will be charged at the indicated rates.  All values not
listed will be charged at the default rate.  The rates for
both algorithms will change on 01/01/96.

+----------------------------------------------------------------------------------------------------------+ | | | Date: ____/____/____ Administrator: ____________________________________________ | +----------------------------------------------------------------------------------------------------------+ RATE TABLE - CONTROL VARIABLE ALGORITHM EXAMPLE DATA BASE UNIT IDENTIFIER: P_______ Journal Algorithm Effective Control Default Default Control Variable File ID Date Variable Comp Code Rate Format Value /Comp Code /Rate ACTJCA ATM_______ _________ CICAPU______ 1500_____ .10_______ $12.__ INQDDA_____/1500________/.08_______________ INQDTA_____/1500________/.05_______________ INQBCD_____/1500________/.11_______________ TRANSFER___/1500________/.20_______________ DEPOSIT____/1500________/.15_______________ WITHDRAW___/1500________/.25_______________

ACTJCA ATM_______ 01/01/96_ CICAPU______ 1500_____ .12_______ $12.__ INQDDA_____/1500________/.10_______________ INQDTA_____/1500________/.06_______________ INQBCD_____/1500________/.13_______________ TRANSFER___/1500________/.22_______________ DEPOSIT____/1500________/.17_______________ WITHDRAW___/1500________/.28_______________ ACTJCA CIF_______ _________ CICAPU______ 1500_____ .50_______ $12.__ INQDDA_____/1500________/.08_______________ SUBSET_____/1500_______/1.00_______________ CORRELATE__/1500_______/2.00_______________ LIST_______/1500_______/.30________________ ACTJCA CIF_______ 01/01/96_ CICAPU______ 1500_____ .70_______ $12.__ INQDDA_____/1500________/.10_______________ SUBSET_____/1500_______/1.20_______________ CORRELATE__/1500_______/2.40_______________ LIST_______/1500_______/.35________________ _________________________________________________________________________________________________________________________________


 Figure 4-24.  Control Variable Algorithm Example