Use - Control Data Corporation 3300 Reference Manual

Computer systems usasi cobol/ master
Table of Contents

Advertisement

4.7.28
USE
4-72
The USE statement introduces user-defined input-output label and error
handling procedures.
Format 1:
USE AFTER STANDARD
OUTPUT
!
file-name-1 [file-name-2]
0
0
' j
INPUT
ERROR PROCEDURE ON
1-0
.
INPUT-OUTPUT
Format 2:
USE
BEFORE
STANDARD
BEGINNING
1
i
[1
!J [{
R~E~LE~L}J
- - AFTER
ENDING
!
file-name-1 [file-name-2]
0
' !
INPUT
LABEL PROCEDURE ON
OUTPUT
0
1-0
INPUT-OUTPUT
Format 3:
USE BEFORE REPORTING identifier-1 [,identifier-2
0 • 0]
A USE statement immediately follows a section header in the Declaratives
portion of the Procedure Division.
It
must be followed by a period and a
space. The remainder of the section consists of one or more procedural
paragraphs defining the procedures
to be used.
The USE statement itself is never executed, rather it defines the conditions
calling for execution of the USE procedures.
A USE procedure must not contain any reference to non-declarative proce-
dures. Conversely, the non-declarative portion must not contain references
to procedure names that appear in the declarative portion; except that a
PERFORM statement may refer to a USE declarative or
to the procedures
associated with a USE declarative.
The only 1-0 statements allowed within a USE procedure are ACCEPT,
DISPLA Y, and CLOSE. A file name must not be referred to explicitly or
implicitly in more than one USE statement. No file name referred to in a
USE procedure can represent a sort file.
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