COBOL Manual for TNS and TNS/R Programs
Contents
HP COBOL Manual for TNS and TNS/R Programs—522555-006
v
8. Procedure Division
8. Procedure Division
Procedure Division Components and Syntax 8-2
Statements 8-4
Sentences 8-10
Paragraphs 8-11
Sections 8-13
Procedures 8-14
Declaratives Portion 8-15
Execution of the Procedure Division 8-16
Statement Execution 8-16
Sentence Execution 8-17
Paragraph Execution 8-17
Section Execution 8-18
Procedure Execution 8-20
Declaratives Portion Execution 8-20
Common Semantic Rules 8-21
Operand Identification 8-21
Overlapping Operands 8-22
Common Phrases 8-22
CORRESPONDING Phrase 8-22
ROUNDED Phrase 8-23
SIZE ERROR Phrase 8-23
FROM Phrase 8-27
INTO Phrase 8-27
Input-Output 8-28
I-O Status Code 8-28
Diagnosing Input-Output Errors 8-33
Recovering from Input-Output Errors 8-39
Timed Input and Output 8-41
Arithmetic Operations 8-42
Common Features of Arithmetic Statements 8-43
Arithmetic Expressions 8-45
Arithmetic Precision 8-48
Conditional Expressions 8-53
Simple Conditions 8-53
Complex Conditions 8-64
Abbreviated Combined Relation Conditions 8-66
Condition Evaluation Rules 8-68
Concatenation Expressions 8-69