Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Examples of alignment z/OS Language Environment Writing Interlanguage Communication Applications SA38-0684-00 |
|
Consider, for example, a structure consisting of a single character
and a fullword fixed binary item. The fullword fixed binary item has
a fullword alignment requirement; the character has a byte alignment
requirement. In PL/I, ALIGNED
is the default, and the structure is declared as follows:
and is held like this:In COBOL, using SYNCHRONIZED, the structure would be declared as
follows:
and is held like this:In COBOL, without SYNCHRONIZED, the structure would be declared
as follows:
and is held like this: |
Copyright IBM Corporation 1990, 2014
|