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 record's layout must be available to the application's job step. For more information about how to make the record's layout available, see the keyword LAYOUTFILE.

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

position

Specifies the position in a record. Specify one of the following values:

1–32760—The actual position location.

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

length

Specifies the length of the field to accumulate. If this parameter is set to 0 or is not specified, the data-type must be packed or omitted. If you specify 0, the first valid packed field located is used. Valid byte lengths depend on the data-type.

decimal-positions

Specifies the number of positions to the right of the decimal point. If this parameter is not specified or is set to 0, 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

Specify one of the following values:

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 not specified, the data-type is assumed to be in packed decimal format.

description

Specifies a text description (maximum length of 40 characters)