Compound data type: Difference between revisions

→‎{{header|COBOL}}: added description
imported>Arakov
imported>Acediast
(→‎{{header|COBOL}}: added description)
Line 575:
 
=={{header|COBOL}}==
A compound data item description is possible in COBOL as a subdivided record:
<syntaxhighlight lang="cobol"> DATA DIVISION.
WORKING-STORAGE SECTION.
01 Point.
05 x PICTUREUSAGE IS 9(3)BINARY-SHORT.
05 y PICTUREUSAGE IS 9(3)BINARY-SHORT.</syntaxhighlight>
Here the record <code>Point</code> has the subdivisions <code>x</code> and <code>y</code>, both of which are signed 16-bit binary integers.
 
=={{header|CoffeeScript}}==
Anonymous user