Language Reference
Table of Contents
Index
Chapter 10: Procedure Division
10.1 Procedure Division
10.1.1 The PROCEDURE DIVISION Header
10.1.2 Arithmetic Expressions
10.1.2.1 Arithmetic Operators
10.1.2.2 Formation and Evaluation Rules
10.1.3 Numeric Expressions
10.1.3.1 Evaluation of Numeric Expressions
10.1.4 Conditional Expressions
10.1.4.1 Simple Conditions
10.1.4.2 Relation Condition
10.1.4.2.1 Comparisons Involving Data Items with USAGE POINTER
10.1.4.2.2 Comparisons Involving Data Items with USAGE PROCEDURE-POINTER
10.1.4.2.3 Class Condition
10.1.4.2.4 Condition-Name Condition (Conditional Variable)
10.1.4.2.5 Switch-Status Condition
10.1.4.2.6 Sign Condition
10.1.4.3 Complex Conditions
10.1.4.3.1 Negated Simple Condition
10.1.4.3.2 Combined and Negated Combined Condition
10.1.4.4 Abbreviated Combined Relation Conditions
10.1.4.4.1 Condition Evaluation Rules
10.1.5 Common Phrases
10.1.5.1 The ROUNDED Phrase
10.1.5.2 The ON SIZE ERROR Phrase and NOT ON SIZE ERROR Phrase
10.1.5.2.1 ON SIZE ERROR Phrase Not Specified
10.1.5.2.2 ON SIZE ERROR Phrase Specified
10.1.5.2.3 The NOT ON SIZE ERROR Phrase
10.1.5.3 The CORRESPONDING Phrase
10.1.5.4 Arithmetic Statements
10.1.5.5 Overlapping Operands
10.1.5.6 Multiple Results in Arithmetic Statements
10.1.5.7 Incompatible Data
10.1.5.8 Signed Receiving Items
10.1.6 File I/O Concepts
10.1.6.1 File Position Indicator
10.1.6.2 I/O Status
10.1.6.2.1 Status Key 1
10.1.6.2.2 Status Key 2
10.1.6.2.3 Valid Combinations of Status Keys 1 And 2
10.1.6.3 The AT END Condition
10.1.6.4 The INVALID KEY Condition
10.1.6.5 Sharing Files on Multi-user Systems
10.1.6.5.1 Exclusive
10.1.6.5.2 Shareable
10.1.6.5.3 Record Sequential Files
10.1.6.5.4 Line Sequential Files
10.1.6.5.5 Relative and Indexed Files
10.1.6.5.6 Record Locking
10.1.6.5.7 Single Record Lock
10.1.6.5.8 Manual Record Locking
10.1.6.5.9 Automatic Record Locking
10.1.6.5.10 Releasing Single Record Locks
10.1.6.5.11 Multiple Record Locks
10.1.6.5.12 Manual Record Locking
10.1.6.5.13 Automatic Record Locking
10.1.6.5.14 Releasing Multiple Record Locks