This division tells the computer what the program will be interacting with
(i.e. its environment) such as printers, disk drives, other files etc... As
such, there are two important sections:
the CONFIGURATION SECTION (which defines
the source and object computer) and the INPUT-OUTPUT SECTION (which defines
printers, files that may by used and assigns identifier names to these external
features).
000260 ENVIRONMENT DIVISION.
000270 CONFIGURATION SECTION.
000280 SOURCE-COMPUTER. IBM PC.
000290 OBJECT-COMPUTER. IBM PC.
000300 INPUT-OUTPUT SECTION.
000310 FILE-CONTROL.
000320 SELECT INPUT-FILE ASSIGN TO 'input.dat'
000330 ORGANIZATION IS LINE SEQUENTIAL.
000340 SELECT PRINT-FILE ASSIGN TO PRINTER.
The printer also is assigned but the organization doesn't have to be
secified.
For the SELECT clause, if no organization is defined the computer
defaults to SEQUENTIAL organization (i.e. each record appears in a long
string with no line breaks.