Previous Topic: SyntaxNext Topic: Example 1


Parameters

ACCUM supports the following parameters:

field-name

Use field-name when referencing a data field that is defined in the record's layout. The use of field-name requires that the record's layout be available to the CA File Master Plus job step. For more information on how to make the record's layout available, see the keyword LAYOUTFILE.

Note: When this parameter is supplied, the keyword's position, length, decimal-positions, and data type are all retrieved from the field-name definition.

position

The position in a record. Valid choices are:

1–32760—The actual position location.

+nnn or –nnn—The relative position to the record's current location.

length

The length of the field to accumulate. If this parameter is omitted or a zero, the data-type must be packed or omitted. If a zero is supplied, the first valid packed field located is used. Valid byte lengths depend on the data-type. See the following data type definitions for a list of their valid lengths.

decimal-positions

The number of positions to the right of the decimal point. If this parameter is omitted, or zero, no decimal points are used. Valid values depend on the data-type and length.

Numeric characters – must be equal to or less than the length of the numeric field.

Binary – must be equal to or less than the size of the number that can be contained in the binary field.

1 byte – maximum of three decimal positions

2 bytes – maximum of five decimal positions

3 bytes – maximum of eight decimal positions

4 bytes – maximum of ten decimal positions

Packed – (2N – 1) where N is the number of digits

data-type

Valid data-types are:

B—Binary unsigned (length value 1 – 8 bytes)

N—Numeric characters (length value 1 – 31 bytes)

P—Packed decimal (length value 1 – 16 bytes)

R—Report (length value 1 – 31 numeric characters, plus appropriate commas and optional decimal place)

S—Signed binary (length value 1 – 8 bytes)

Note: When this parameter is omitted, the data-type is assumed to be in packed decimal format.

description

Text description (maximum length of 40 characters)