| Chapter 8 |
|
8
|
Program Control
|
|
8.1
|
DO Groups and Statements
|
|
8.1.1
|
Simple DO
|
|
8.1.2
|
DO WHILE
|
|
8.1.3
|
DO UNTIL
|
|
8.1.4
|
Controlled DO
|
|
8.1.5
|
DO REPEAT
|
|
8.2
|
BEGIN Statement
|
|
8.3
|
END Statement
|
|
8.4
|
IF Statement
|
|
8.4.1
|
Nested IF Statements
|
|
8.5
|
SELECT Statement
|
|
8.5.1
|
The Two Forms of the SELECT Statement
|
|
8.5.2
|
OTHERWISE Clause
|
|
8.5.3
|
Nested SELECT Statements
|
|
8.6
|
GOTO Statement
|
|
8.7
|
LEAVE Statement
|
|
8.8
|
STOP Statement
|
|
8.9
|
Null Statement
|
|
8.10
|
Condition Handling
|
|
8.10.1
|
ON Statement
|
|
8.10.2
|
SIGNAL Statement
|
|
8.10.3
|
REVERT Statement
|
|
8.10.4
|
Summary of ON Conditions
|
|
8.10.4.1
|
ANYCONDITION Condition Name
|
|
8.10.4.2
|
AREA Condition Name
|
|
8.10.4.3
|
CONDITION Condition Name
|
|
8.10.4.4
|
CONVERSION Condition Name
|
|
8.10.4.5
|
ENDFILE Condition Name
|
|
8.10.4.6
|
ENDPAGE Condition Name
|
|
8.10.4.7
|
ERROR Condition Name
|
|
8.10.4.8
|
FINISH Condition Name
|
|
8.10.4.9
|
FIXEDOVERFLOW Condition Name
|
|
8.10.4.10
|
KEY Condition Name
|
|
8.10.4.11
|
OVERFLOW Condition Name
|
|
8.10.4.12
|
STORAGE Condition Name
|
|
8.10.4.13
|
STRINGRANGE Condition Name
|
|
8.10.4.14
|
SUBSCRIPTRANGE Condition Name
|
|
8.10.4.15
|
UNDEFINEDFILE Condition Name
|
|
8.10.4.16
|
UNDERFLOW Condition Name (Kednos PL/I for OpenVMS VAX only)
|
|
8.10.4.17
|
VAXCONDITION Condition Name
|
|
8.10.4.18
|
ZERODIVIDE Condition Name
|
|
8.10.5
|
Default PL/I ON-Unit
|
|
8.10.6
|
Establishment of ON-Units
|
|
8.10.7
|
Contents of an ON-Unit
|
|
8.10.8
|
Search Path for ON-Units
|
|
8.10.9
|
Completion of ON-Units
|
| Chapter 9 |
|
9
|
Input and Output
|
|
9.1
|
Opening and Closing Files
|
|
9.1.1
|
File Declarations
|
|
9.1.2
|
File Variables
|
|
9.1.3
|
Opening a File
|
|
9.1.3.1
|
OPEN Statement Options
|
|
9.1.3.2
|
Effects of Opening a File
|
|
9.1.3.3
|
Establishing the File's Attributes
|
|
9.1.3.4
|
Determining the File Specification
|
|
9.1.3.5
|
Accessing an Existing File
|
|
9.1.3.6
|
Creating a File
|
|
9.1.3.7
|
File Positioning
|
|
9.1.4
|
File Description Attributes and Options
|
|
9.1.5
|
Closing a File
|
|
9.2
|
Stream I/O
|
|
9.2.1
|
Processing and Positioning of Stream Files
|
|
9.2.2
|
Input by the GET Statement
|
|
9.2.2.1
|
Syntax Summary of the GET Statement
|
|
9.2.2.2
|
GET EDIT
|
|
9.2.2.3
|
GET LIST
|
|
9.2.2.4
|
GET SKIP
|
|
9.2.2.5
|
Execution of the GET Statement
|
|
9.2.3
|
Output by the PUT Statement
|
|
9.2.3.1
|
Syntax Summary of the PUT Statement
|
|
9.2.3.2
|
PUT EDIT
|
|
9.2.3.3
|
PUT LINE
|
|
9.2.3.4
|
PUT LIST
|
|
9.2.3.5
|
PUT PAGE
|
|
9.2.3.6
|
PUT SKIP
|
|
9.2.3.7
|
Execution of the PUT Statement
|
|
9.2.4
|
Format Items
|
|
9.2.4.1
|
A Format Item
|
|
9.2.4.2
|
B Format Items
|
|
9.2.4.3
|
COLUMN Format item
|
|
9.2.4.4
|
E Format Item
|
|
9.2.4.5
|
F Format Item
|
|
9.2.4.6
|
LINE Format Item
|
|
9.2.4.7
|
P Format Item
|
|
9.2.4.8
|
PAGE Format Item
|
|
9.2.4.9
|
R Format Item
|
|
9.2.4.10
|
SKIP Format Item
|
|
9.2.4.11
|
TAB Format Item
|
|
9.2.4.12
|
X Format Item
|
|
9.2.4.13
|
Format Specifications
|
|
9.2.5
|
Processing and Positioning of Character Strings
|
|
9.2.6
|
Terminal I/O
|
|
9.2.6.1
|
Simple Input from a Terminal
|
|
9.2.6.2
|
Simple Output to a Terminal
|
|
9.2.6.3
|
Print File
|
|
9.3
|
Record I/O
|
|
9.3.1
|
READ Statement
|
|
9.3.1.1
|
File Positioning Following a READ Statement
|
|
9.3.2
|
WRITE Statement
|
|
9.3.2.1
|
File Positioning Following a WRITE Statement
|
|
9.3.3
|
DELETE Statement
|
|
9.3.3.1
|
File Positioning Following a DELETE Statement
|
|
9.3.4
|
REWRITE Statement
|
|
9.3.4.1
|
File Positioning Following a REWRITE Statement
|
|
9.3.5
|
Position Information for a Record File
|