Synchronizes items based on their size.
>>-.---.-.----.--MFSYNC-"integer"--------->< +-/-+ +-NO-+
2 | will synchronize:
2 byte comp/comp-x/comp-5 sync pic x(4) comp/comp-x/comp-5 sync pic x(8) comp/comp-x/comp-5 sync |
on boundary:
2 2 2 |
4 | will synchronize:
2 byte comp/comp-x/comp-5 sync pic x(4) comp/comp-x/comp-5 sync pic x(8) comp/comp-x/comp-5 sync |
on boundary:
2 4 4 |
8 | will synchronize:
2 byte comp/comp-x/comp-5 sync pic x(4) comp/comp-x/comp-5 sync pic x(8) comp/comp-x/comp-5 sync |
on boundary:
2 4 8 |
Default: | NOMFSYNC |
Phase: | Syntax check |
$SET: | Initial |
If MFSYNC is specified alone (that is, without a qualifier) the effect will be as if MFSYNC"4" was specified.
Comments:
Applying the MFSYNC directive on a compilation unit can improve code generation and execution speed considerably. However, applying MFSYNC to a program that was developed without consideration for the MFSYNC effect on Data Division and record layout could have a detrimental effect on the program’s semantics.