Control Data Corporation 3300 Reference Manual page 27

Computer systems usasi cobol/ master
Table of Contents

Advertisement

2-6
SELECT [OPTIONAL] file-name-l
The SELECT clause is required for each file described in the Data Division.
Each file is named only once as file-name-l in the FILE-CONTROL para-
graph following the key word SELECT.
Each selected file must have a file
description entry in the Data Division of the source program unless a RE-
NAMING clause relates the selected file to a file that is the subject of another
SELECT clause. The SELECT clause for the renamed file must not contain
the RENAMING option.
The key word OPTIONAL is required for input files that are not necessarily
present each time the object program is run.
RENAMING file-name-2
If the RENAMING clause is used, file-name-l uses the file description entry,
including the associated record description already specified for file-name-2.
The files do not share the same area unless the SAME AREA clause appears
in the I-O-CONTROL paragraph. File-name-l is essentially a duplicate of
file-name-2 except that file-name-l has its own FILE-CONTROL paragraph
entry.
File-name-2, the renamed file, may not be a sort file.
ASSIGN TO [integer-I] hardware-name-l dsi-l
['{:rdware-name-2 dsi-2} ]
All files used in the program must be assigned to an input or output device
(hardware name) .
Allowable hardware names are as follows:
READER
PRINTER
PUNCH
SYSTEM -INPUT
SYSTEM-OUTPUT
SYSTEM-PUNCH
TAPE
DISK
SCRATCH
TTY (teletypewriter)
CRT (211 display)
Each hardware name, except SYSTEM-INPUT, SYSTEM-OUTPUT and
SYSTEM-PUNCH must be accompanied by a data set identifier (dsi). The
dsi is a 1-4 character alphanumeric identifier used by MASTER and the
input-output control system for all references to this file during the running
of the program. It must not begin with an asterisk
(*),
and may not be INP,
OUT, PUN or any COBOL reserved word.
Integer-l indicates the number of input-output units of a given hardware name
assigned to the file name.
This option is used for documentation purposes
only.
60229400

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 3300 and is the answer not in the manual?

This manual is also suitable for:

3500

Table of Contents