DTRHELP.HLB  —  Commands Statements Clauses, SYNCHRONIZED Clause, Example
       This example shows the difference in storage allocation a SYNC
       clause can make. A field of USAGE type LONG occupies four bytes
       of storage (the equivalent of one longword):

       DTR> DEFINE RECORD NOSYNC_REC USING
       DFN> 01 TOP.
       DFN>    03 ONE PIC X.
       DFN>    03 TWO LONG.
       DFN> ;
       [Record is 5 bytes long.]
       DTR> DEFINE RECORD SYNC_REC USING
       DFN> 01 TOP.
       DFN>    03 ONE PIC X.
       DFN>    03 TWO SYNC RIGHT LONG.
       DFN> ;
       [Record is 8 bytes long.]
       DTR>
Close Help