Synchronizes items based on their size.
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 |
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.