ILE COBOL Language Reference

Specifying the SYNCHRONIZED Clause with the REDEFINES Clause

When the SYNCHRONIZED clause is specified for an item that also contains a REDEFINES clause, the data item that is redefined must have the proper boundary alignment for the data item that redefines it. No padding characters are added for items containing the REDEFINES clause. For example, if you write the following, be sure that data item A begins at a multiple of 4 bytes relative to the beginning of the record:

02 A                     PICTURE X(4).
02 B REDEFINES A         PICTURE S9(9) BINARY SYNC.

When the SYNCHRONIZED clause is specified for a binary item that is the first elementary item subordinate to an item that contains a REDEFINES clause, the item must not require the addition of unused character positions.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]