Previous Topic: CONFIG Statement

Next Topic: DEBIT Statement


CREDIT Statement

Position

Field Length

Field Name

Notes

1

1

Set Code

Optional

2-9

8

Statement Type

CREDIT

10

1

CPU Identification

 

11-18

8

VM Account number

 

19-34

16

VM Account number or User Accounting Table information

 

35-40

6

Date

YYMMDD

41-48

8

VM Userid

 

49-54

6

Time

HHMMSS

55-74

20

Blanks

 

75-80

6

Credit Amount

9999V99; dollars

This statement, identified by the statement type CREDIT, is optional. The CREDIT statement is used to supplement the accounting algorithm defined on the VMRATE and FORMRATE statements. Credits may be manually introduced to the Report Writer to be applied to a specific session or summarization level (account, department, project, and so forth). The CREDIT statement is typically used to:

Each CREDIT statement introduced to the Report Writer is formatted into an accounting record to be sorted and reported on as any other input. All CREDIT statement fields are moved into the corresponding fields in the accounting record.

For processing purposes, the record is treated as a one-step job.

The following fields, if not present on the CREDIT statement, are filled with blanks in the formatted record:

The following fields (or any portion thereof) not present on the CREDIT statement are filled with high values (hex 'FF') in the formatted record:

For collating purposes, note that the Date field is moved to the Start Date fields. Also, the Time field is moved to the Start Time fields in the formatted record. The high values portion of these fields, if any, do not print when selected for display and, therefore, can be used to reduce keypunch strokes when preparing CREDIT statements or to cause credits to collate last in a certain group of records.

The Credit Amount, in dollars, is carried by the Report Writer and made available for display as DE ID 79 in the VM Output Data Elements Table.

The Credit Amount also affects the Total Charge, Distributed Charge, and Percent Totals at any level of display (DE ID 46, 47, 41 and 42, respectively). The following is an example of a typical CREDIT statement setup:

                                                   position  75 x
ACREDIT  6        AAA             8408                          150000

The CREDIT statement for Report A is to be applied against CPU Identification 6. The account number is AAA, assumed to be the first three characters of the Accounting Fields information. The Credit Amount of $1500.00 is to be applied against current September billing for August adjustments.