HP COBOL II/3000

HP COBOL II/3000
Table of Contents
HP COBOL II/3000
HP COBOL II/3000 : COPYRIGHT NOTICE
Introduction
ANSI Standard Compliance
New ANSI'85 Features in COBOL II
Compatibility Considerations
Program Structure
Structural Hierarchy
DIVISIONS
Sections
Paragraphs
Sentences, Statements, and Clauses
Program Elements
Character Strings
Separators
Character Set
Coding Rules
Describing and Referencing Data
Files
Records
Data Items
Algebraic Signs
Data Alignment
Identifiers
Uniqueness of Reference
Tables
Reference Modification
IDENTIFICATION DIVISION
IDENTIFICATION DIVISION Format
IDENTIFICATION DIVISION Syntax Rules
Paragraphs
ENVIRONMENT DIVISION
ENVIRONMENT DIVISION Format
ENVIRONMENT DIVISION Syntax Rules
CONFIGURATION SECTION
SOURCE-COMPUTER Paragraph
OBJECT-COMPUTER Paragraph
SPECIAL-NAMES Paragraph
INPUT-OUTPUT SECTION
FILE-CONTROL Paragraph
File Control Clauses
I-O-CONTROL Paragraph
DATA DIVISION
DATA DIVISION Format
DATA DIVISION Syntax Rules
FILE SECTION
WORKING-STORAGE SECTION
LINKAGE SECTION
DATA DIVISION Clauses
File Description Clauses
Data Description Entries
Data Description Entries (continued)
Data Description Entries (continued)
PROCEDURE DIVISION
PROCEDURE DIVISION Header
PROCEDURE DIVISION Format
PROCEDURE DIVISION Syntax Rules
PROCEDURE DIVISION Statements and Sentences
Arithmetic Expressions
Conditional Expressions
Simple Conditions
Complex Conditions
Condition Evaluation Rules
Abbreviated Combined Relation Conditions
Common Phrases
Common Features of Arithmetic Statements
Input-Output Error Handling Procedures
PROCEDURE DIVISION Statements
ACCEPT Statement
ADD Statement
ALTER Statement
Call Statement
CANCEL Statement
CLOSE Statement
COMPUTE Statement
CONTINUE Statement
DELETE Statement
DISPLAY Statement
DIVIDE Statement
ENTER Statement
ENTRY Statement
EVALUATE Statement
EXAMINE Statement
EXCLUSIVE Statement
EXIT Statement
EXIT PROGRAM Statement
GOBACK Statement
GO TO Statement
IF Statement
INITIALIZE Statement
INSPECT Statement
MOVE Statement
MULTIPLY Statement
OPEN Statement
PERFORM Statement
READ Statement
RELEASE Statement
RETURN Statement
REWRITE Statement
SEARCH Statement
SEEK Statement
SET Statement
START Statement
STOP Statement
STRING Statement
SUBTRACT Statement
UN-EXCLUSIVE Statement
UNSTRING Statement
USE Statement
WRITE Statement
Interprogram Communication
Transfer of Control
Reference to Common Data and Files
Reference to Common Data through Parameter Passing
Reference to Common Data and Files through External Objects
Types of Subprograms
END PROGRAM Header
CALL Statement
CANCEL Statement
ENTRY Statement
EXIT PROGRAM Statement
GOBACK Statement
SORT/MERGE Operations
MERGE Statement
RELEASE Statement
RETURN Statement
SORT Statement
Debug Module
WITH DEBUGGING MODE Clause
USE FOR DEBUGGING statement
Debugging Lines
Source Text Manipulation
COPY Statement
REPLACE Statement
COBOL II Error Messages
Reading Error Messages from COBCAT
Compile-Time Error Messages
Run-Time Error Messages
Warnings
Questionable Errors
Questionable Errors (continued)
Serious Errors
Disastrous Errors
Nonstandard Warnings
Informational Messages
Run-Time Errors
Preprocessor Commands and $CONTROL Options
Types of Processes
Preprocessor Programming Language
Macro Definition and Use
Conditional Compilation
File Insertion, and Merging and Editing Operations
Compiler Dependent Options
The COBCNTL FILE
Differences Between COBOL'74 and COBOL'85
ANSI74 Entry Point Differences
Incompatibilities Between COBOL'74 and COBOL'74
Obsolete Features
ASCII and EBCDIC Character Sets
COBOL Glossary
Definitions
COBOL Reserved Word List
Summary of COBOL II Syntax
HPTOOLSET Program Development System
HPTOOLSET Symbolic Debug Facility
COBEDIT Program and COPY Libraries
COBEDIT Program
COPY Libraries
COBEDIT Commands
MPE V System Dependencies
COBOL II/V Commands and User-Defined Commands
COBOLII Syntax
COBOLIIX Syntax
Job Control Word Bit Settings
Compiling, Preparing, and Executing Programs
$CONTROL Options
Addressing and Computational Considerations
Segmentation and External Naming Conventions
COBOL II/V Language Dependencies
Run-Time Error Handling
Example COBOL II/V Program
Compiler Limits