Previous Topic: Grouping Feature Example 5

Next Topic: HEADER Statement


Grouping Feature Example 6

Request:

Process records with specific Run Date(s) within a specified range.

Build GROUP and GROUPC statements as follows:

position   1         2         3         4         5                 8
  1........0.........0.........0.........0.........0..            ...0
   GROUP   04306 S
   GROUPC  1880905  880909

Position

Field Length

Field Name

Notes

1

1

Set Code

Required

2-9

8

Statement Type

GROUPC

10

1

Definition Indicator

1 to 6; refers to a Group Definition on the GROUP statement

11-18

8

Lower Limiting Criteria *

 

19-26

8

Upper Limiting Criteria *

Optional if same as lower limit

27

1

Group Code

Any character: to be placed in appropriate Group Code field in accounting record

28

1

CPU Identification

blank: no change in CPU ID
Any character: replace CPU ID in accounting record with this character

29-80

52

Reserved

Not used

* Each Criteria Field is converted to packed-decimal or hexadecimal (binary) or left as is depending on the contents of the appropriate Format Indicator in the GROUP statements.

Refer to the following table to determine the number of characters to code in the Criteria fields (always left-justified) for format indicators P and X:

GROUP Statement
Field Length


Number of Characters for:

 

 

P

X

1

1

2

2

3

4

3

5

6

4

7

8