Previous Topic: Define Groups by Values Within Specified Ranges

Next Topic: Create Charge-Back Reports Organized by Group

Use the COST Command to Create Charge-Back Reports

To create charge-back reports, use the COST command with the TAB command.

For information about creating distributed cost reports, see the description of the COST command in the chapter “Commands.”

Example: COST Commands

The COST commands in the following example charge:

The TAB command uses these cost factors, creating a tabular report with a column showing the value of each variable for each transaction. The HDR1 and HDR2 operands assign those columns appropriate headings. The last variable, REPORT COST TOTAL, creates a column that shows the sum of the costs for each row in the report.

COST TRAN USE   .01
COST TRAN CPU   .25
TAB TRANID TRAN USE                                  AND,
           TRAN USE  COST HDR1(TRAN USE) HDR2(COST)  AND,
           TRAN CPU                                  AND,
           TRAN CPU  COST HDR1(TRAN CPU) HDR2(COST)  AND,
           REPORT COST TOTAL
END
RUN

A report like the following is generated:

TRAN TRAN TRAN USE TRAN TRAN CPU TOTAL ID USE COST CPU COST COST -------- -------- -------- -------- -------- -------- X25T 57 $0.57 0.132 $1.88 $2.45 CSNE 49 $0.49 0.010 $0.12 $0.61 TCP 46 $0.46 0.572 $6.57 $7.03 KCP 45 $0.45 7.581 $85.28 $85.73 PSPI 43 $0.43 0.097 $1.04 $1.47 POSS 37 $0.37 0.035 $0.32 $0.69 VGBC 13 $0.13 0.055 $0.18 $0.31 JJJ 10 $0.10 0.221 $0.55 $0.65 CSPQ 10 $0.10 0.113 $0.28 $0.38 CATD 9 $0.09 0.105 $0.24 $0.33 CSSN 8 $0.08 0.071 $0.14 $0.22 CSGM 8 $0.08 0.007 $0.01 $0.09 RAPL 4 $0.04 0.011 $0.01 $0.05 SPAM 3 $0.03 0.132 $0.10 $0.13 PINV 2 $0.02 1.486 $0.74 $0.76 PADI 2 $0.02 0.350 $0.17 $0.19 RAPP 2 $0.02 0.098 $0.05 $0.07 -------- -------- -------- -------- -------- -------- SUMMARY 348 $3.47 11.022 $ 97.68 $101.16 -------- -------- -------- -------- -------- - ------