The SYNCHRONIZED clause specifies the alignment of an elementary item on the natural boundaries of the computer memory (see Item Alignment).
2. SYNC is an abbreviation for SYNCHRONIZED.
1. The SYNCHRONIZED clause has effect only on numeric binary variables (COMP, COMP-4, COMP-5, BINARY) when at least one of the compiler options -cv, -ca, -dcmi is specified. Otherwise, the SYNCHRONIZED clause is treated as commentary only.
2. If either the -dcmi or the -cv compiler option is specified, then the SYNCHRONIZED clause on a non-elementary item applies also to its subordinate items, otherwise the SYNCHRONIZED clause affects only elementary items.
b. The number of character positions allocated when any such group item is the object of a REDEFINES clause. The unused character positions are not included in the character positions redefined when the elementary item is the object of a REDEFINES clause.
4. SYNCHRONIZED not followed by either RIGHT or LEFT specifies that the elementary item is to be positioned between natural boundaries in such a way as to effect efficient utilization of the elementary data item.
5. SYNCHRONIZED LEFT specifies that the elementary item is to be positioned such that it will begin at the left character position of the natural boundary in which the elementary item is placed.
6. SYNCHRONIZED RIGHT specifies that the elementary item is to be positioned such that it will terminate on the right character position of the natural boundary in which the elementary item is placed.
7. Whenever a SYNCHRONIZED item is referenced in the source program, the original size of the item, as shown in the PICTURE clause, the USAGE clause, and the SIGN clause, is used in determining any action that depends on size, such as justification, truncation, or overflow.
8. If the data description of an item contains an operational sign and any form of the SYNCHRONIZED clause, the sign of the item appears in the sign position explicitly or implicitly specified by the SIGN clause.
9. When the SYNCHRONIZED clause is specified in a data description entry of a data item that also contains an OCCURS clause, or in a data description entry of a data item subordinate to a data description entry that contains an OCCURS clause, then:
a. Each occurrence of the data item is SYNCHRONIZED.
b. Any implicit FILLER generated for other data items within that same table are generated for each occurrence of those data items.
| Copyright (c) 2017 Veryant |
| Contact us |
|
Please share your comments on this manual or on any Veryant product documentation with the email button at the top left |