SERIAL keyword
The SERIAL keyword specifies how to process change accumulation groups.
You can process all groups serially, SERIAL(1), process all groups in parallel, SERIAL(3), or limit the number of groups that process in parallel to the number of sorts tasks specified, SERIAL(2).
To limit the number of groups that process in parallel, specify SERIAL(2) and use the SORT keyword to explicitly assign each group to a specific sort task. All groups assigned to the same sort task are processed serially. Always assign the same sort task to groups that are stacked together. In the following example, the four groups process two at a time based on the explicitly assigned sort tasks:
SORT SORT(SRT1)
SORT SORT(SRT2)
GROUP CAGRP(GRP1) SORT(SRT1)
GROUP CAGRP(GRP2) SORT(SRT2)
GROUP CAGRP(GRP3) SORT(SRT1)
GROUP CAGRP(GRP4) SORT(SRT2)
Serial processing is enforced if change accumulation input or output data sets are stacked.
Use | Optional on the GLBL control statement | ||||||
---|---|---|---|---|---|---|---|
Related keyword | |||||||
Syntax | SERIAL(value) | ||||||
Values | Select one of the following:
| ||||||
Default | SERIAL(3) |
Related topic