Compaq COBOL
Reference Manual


Previous Contents Index

Chapter 6
6 Procedure Division
     6.1     Verbs, Statements, and Sentences
         6.1.1         Compiler-Directing Statements and Sentences
         6.1.2         Imperative Statements and Sentences
         6.1.3         Conditional Statements and Sentences
         6.1.4         Scope of Statements
     6.2     Uniqueness of Reference
         6.2.1         Qualification
         6.2.2         Subscripts and Indexes
         6.2.3         Reference Modification
         6.2.4         Identifiers
         6.2.5         Ensuring Unique Condition-Names
         6.2.6         Scope of Names
             6.2.6.1             Conventions for Resolving Other References
         6.2.7         External and Internal Data
     6.3     Explicit and Implicit Specifications
         6.3.1         Explicit and Implicit Procedure Division References
         6.3.2         Explicit and Implicit Control Transfers
         6.3.3         Explicit and Implicit Attributes
         6.3.4         Explicit and Implicit Scope Terminators
     6.4     Arithmetic Expressions
         6.4.1         Arithmetic Operators
         6.4.2         Formation and Evaluation of Arithmetic Expressions
         6.4.3         Standard Arithmetic
         6.4.4         Native Arithmetic
             6.4.4.1             FLOAT Arithmetic
             6.4.4.2             CIT3 Arithmetic
             6.4.4.3             CIT4 Arithmetic
     6.5     Conditional Expressions
         6.5.1         Relation Conditions
         6.5.2         Class Condition
         6.5.3         Condition-Name Condition
         6.5.4         Switch-Status Condition
         6.5.5         Sign Condition
         6.5.6         Success/Failure Condition
         6.5.7         Complex Conditions
         6.5.8         Abbreviated Combined Relation Conditions
         6.5.9         Condition Evaluation Rules
     6.6     Common Rules and Options for Data Handling
         6.6.1         Arithmetic Operations
         6.6.2         Multiple Receiving Fields in Arithmetic Statements
         6.6.3         ROUNDED Phrase
         6.6.4         ON SIZE ERROR Phrase
         6.6.5         CORRESPONDING Phrase
         6.6.6         ON EXCEPTION Phrase
         6.6.7         Overlapping Operands and Incompatible Data
         6.6.8         I-O Status
         6.6.9         AT END Phrase
         6.6.10         INVALID KEY Phrase
         6.6.11         FROM Phrase
         6.6.12         INTO Phrase
     6.7     Segmentation
     6.8     General Formats and Rules for Statements
         6.8.1         ACCEPT
         6.8.2         ADD
         6.8.3         ALTER
         6.8.4         CALL
         6.8.5         CANCEL
         6.8.6         CLOSE
         6.8.7         COMPUTE
         6.8.8         CONTINUE
         6.8.9         DELETE
         6.8.10         DISPLAY
         6.8.11         DIVIDE
         6.8.12         EVALUATE
         6.8.13         EXIT
         6.8.14         EXIT PROGRAM
         6.8.15         GENERATE
         6.8.16         GO TO
         6.8.17         IF
         6.8.18         INITIALIZE
         6.8.19         INITIATE
         6.8.20         INSPECT
         6.8.21         MERGE
         6.8.22         MOVE
         6.8.23         MULTIPLY
         6.8.24         OPEN
         6.8.25         PERFORM
         6.8.26         READ
         6.8.27         RECORD
         6.8.28         RELEASE
         6.8.29         RETURN
         6.8.30         REWRITE
         6.8.31         SEARCH
         6.8.32         SET
         6.8.33         SORT
         6.8.34         START
         6.8.35         STOP
         6.8.36         STRING
         6.8.37         SUBTRACT
         6.8.38         SUPPRESS
         6.8.39         TERMINATE
         6.8.40         UNLOCK
         6.8.41         UNSTRING
         6.8.42         USE
         6.8.43         WRITE
     6.9     END PROGRAM Header


Previous Next Contents Index