Ch 7. DATA DIVISION [ HP COBOL II/XL Reference Manual ] MPE/iX 5.0 Documentation
HP COBOL II/XL Reference Manual
Chapter 7 DATA DIVISION
The DATA DIVISION describes all data that your program is to use. That
is, it describes any data to be read from or written to a file, data
developed internally and held in temporary or working storage, and any
constants that are used. The DATA DIVISION is optional. When
included, however, it must follow the ENVIRONMENT DIVISION.
There are three sections within the DATA DIVISION:
* FILE SECTION: defines the structure of data files.
* WORKING-STORAGE SECTION: describes data items used as constants by
the object program, as well as records and noncontiguous data
items that are developed and used internally, and are not part of
external data files.
* LINKAGE SECTION: describes data items within subprograms that are
referenced by both the calling and the called program. This
section appears only in programs that will be called by some other
program. Its format is the same as the format of the
WORKING-STORAGE SECTION.
MPE/iX 5.0 Documentation