HP 3000 Manuals

COBOL/HP-UX Language Reference for the Series 700 and 800 MPE/iX 5.0 Documentation


COBOL/HP-UX Language Reference for the Series 700 and 800

Table of Contents

 COBOL/HP-UX Language Reference for the Series 700 and 800
   COBOL/HP-UX Language Reference for the Series 700 and 800 : COPYRIGHT NOTICE

   Ch 1.  Introduction
       The COBOL Language
      Formats and Rules
          General Format
          Syntax Rules
          General Rules
          Elements
      Source Format
          Sequence Number
          Indicator Area
          Areas A and B

   Ch 2.  COBOL Concepts
       Language Concepts
          Character Set
          Language Structure
             Separators
             Character-strings
      Concept of Computer-Independent Data Description
      Concept of Levels
          Level-Numbers
      Concepts of Classes of Data
          Algebraic Signs
          Standard Alignment Rules
          Item Alignment for Increased Object-code Efficiency
          Selection of Character Representation and Radix
             DISPLAY Format
      Concepts of Classes of Data (cont.)
          Concepts of Classes of Data (cont.) (cont.)
             COMPUTATIONAL, COMP, BINARY, (ANS85) COMPUTATIONAL-4 or COMP-4 (MF) (OSVS) (VSC2
          Uniqueness of Reference
             Qualification
             Subscripting
             Indexing
             Function-Identifier
             Identifier
             Condition-Name
          Explicit and Implicit Specifications
             Explicit and Implicit Procedure Division References
             Explicit and Implicit Transfers of Control
             Explicit and Implicit Attributes
             Explicit and Implicit Scope Terminators
      Program Structure
          Optional Division, Section and Paragraph Headings
      Identification Division
          General Description
          Organization
          Structure
      Environment Division
          General Description
          Organization
          Structure
      Data Division
          Overall Approach
          Physical and Logical Aspects of Data Description
             Data Division Organization
      Procedure Division
          General Description
             Declaratives
             Procedures
             Execution
          Statements and Sentences
             Conditional Statement
             Conditional Sentence
             The COBOL System-Directing Statement
             The COBOL System-Directing Sentence
             Imperative Statement
             Delimited Scope Statements
             Imperative Sentence
             Categories of Statements
      Reference Format
          General Description
          Reference Format Representation
             Sequence Numbers
             Continuation of Lines
             Blank Lines
             Pseudo-text
          Division, Section, Paragraph Formats
             Division Header
             Section Header
             Paragraph Header, Paragraph-name and Paragraph
          Data Division Entries
          Declaratives
          Comment Lines
      Reserved Words

   Ch 3.  The Nucleus
       Function of the Nucleus
      A COBOL Source Program
          General Description
             Organization
          Structure
          Initial State of a Program
      Identification Division
          General Description
          Organization
          Structure
             The PROGRAM-ID Paragraph and Nested Source Programs (ANS85)
          The DATE-COMPILED Paragraph
      Environment Division
          General Description
          Configuration Section
          The Source-Computer Paragraph
          The Object-Computer Paragraph
          The Special-Names Paragraph
      Data Division
          Working-Storage Section
          Noncontiguous Working-Storage (77-level-description-entry)
          Working-Storage Records (record-description-entry)
          Record Description Structure
          Initial Values
          Linkage Section
          Noncontiguous Linkage Storage
          Linkage Records
          Initial Values
          The Data Description - Complete Entry Skeleton
          The BLANK WHEN ZERO Clause
          The Data-Name or FILLER Clause
          The GLOBAL Clause
          The JUSTIFIED Clause
          Level Number
      Data Division (cont.)
          The OCCURS Clause
         The PICTURE Clause
          The REDEFINES Clause
          The RENAMES Clause
          The SIGN Clause
          The SYNCHRONIZED Clause
          The USAGE Clause
      Data Division (cont)
          The VALUE Clause
      Data Division (cont.)
      Data Division (cont)
          The ZERO-FILL Clause
      Procedure Division
          The PROCEDURE DIVISION Header
          Arithmetic Expressions
             Definition of an Arithmetic Expression
             Arithmetic Operators
             Formation and Evaluation Rules
          Conditional Expressions
             Simple Conditions
             Relation Condition
      Procedure Division (cont.)
          Procedure Division (cont.) (cont.)
             Class Condition
             Condition-Name Condition (Conditional Variable)
             Switch-Status Condition
             Sign Condition
             Complex Conditions
             Negated Simple Condition
             Combined and Negated Combined Condition
             Abbreviated Combined Relation Conditions
             Condition Evaluation Rules
          Common Phrases and General Rules for Statement Formats
             The ROUNDED Phrase
             The ON SIZE ERROR Phraseand NOT ON SIZE ERROR Phrase (ANS85)
             The CORRESPONDING Phrase
             Arithmetic Statements
             Overlapping Operands
             Multiple Results in Arithmetic Statements
             Incompatible Data
            Signed Receiving Items
          The ACCEPT Statement
         The ADD Statement
          The ALTER Statement
             The CALL Statement
             The CANCEL Statement
          The CHAIN Statement
      Procedure Division (cont)
          The COMPUTE Statement
          The CONTINUE Statement
          The DISPLAY Statement
          The DIVIDE Statement
      Procedure Division (cont.)
         The ENTER Statement
          The EXIT Statement
          The GO TO Statement
          The IF Statement
         The INSPECT Statement
          The MOVE Statement
          The MULTIPLY Statement
         The PERFORM Statement
          The SEARCH Statement
         The SET Statement
          The STOP Statement
          The STRING Statement
          The SUBTRACT Statement
          The UNSTRING Statement

   Ch 4.  Intrinsic Function Module
       Introduction to the Intrinsic Function Module
      Language Concepts
          Function-name
          Value Returned by a Function
          Function-identifier
          Function Definition and Returned Value
          Date Conversion Functions
          Arguments
          Types of Functions
          Definitions of Functions
      Language Concepts (cont)
          The STANDARD-DEVIATION Function

   Ch 5.  File Input and Output
       Introduction to File Input and Output
          Record Sequential Input/Output
             Organization of Line and (MF) Record Sequential Files
             Access Mode
          Relative Input-Output
             Organization of Relative Files
             Access Mode
          Indexed Input-Output
             Organization of Indexed Files
             Access Mode
          File Position Indicator
          I/O Status
             Status Key 1
             Status Key 2
             The AT END Condition
             The INVALID KEY Condition
             Valid Combinations of Status Keys 1 And 2
      Environment Division for File Input and Output
          Input-Output Section
             The FILE-CONTROL Paragraph
             The FILE-CONTROL Entry
             The I/O-CONTROL Paragraph
      Data Division for File Input and Output
          File Section
          Relationship with SORT-MERGE
          Record Description Structure
          The File Description - The Complete Entry Skeleton
          The BLOCK CONTAINS Clause
          The CODE-SET Clause
          The DATA RECORDS Clause
          The GLOBAL Clause
          The LABEL RECORDS Clause
          Linage-Counter
          The LINAGE Clause
          The RECORD Clause
          The RECORDING MODE Clause
          The VALUE OF Clause
      Procedure Division for File Input and Output
          The CLOSE Statement
          The DELETE Statement
      Procedure Division for File Input and Output (cont.)
          The MERGE Statement
          The OPEN Statement
          The READ Statement
      Procedure Division for File Input and Output (cont)
          The RELEASE Statement
          The RETURN Statement
          The REWRITE Statement
          The SORT Statement
      Procedure Division for File Input and Output (continued)
          The START Statement
          The USE Statement
          The WRITE Statement

   Ch 6.  Compiler-Directing Statements
       Introduction to Compiler-Directing Statements
          The Library Module
          The BASIS Mechanism
             The COPY Statement
             The EJECT Statement
             The REPLACE Statement
             The TITLE Statement

   Ch 7.  Segmentation
       Introduction to the Segmentation Module
      General Description of Segmentation
          Organization
             Program Segments
             Fixed Portion
             Independent Segments
          Segmentation Classification
          Segmentation Control
      Structure of Program Segments
          Segment-Numbers
          Segment-Limit
      Restrictions on Program Flow
          The ALTER Statement
          The PERFORM Statement
          The MERGE Statement
          The SORT Statement

   Ch 8.  Debug and Interactive Debugging
       Introduction
      Standard ANSI COBOL Debug
          Object-time Switch
          COBOL Debug Run-time Switch
      Environment Division in COBOL Debug
          The WITH DEBUGGING MODE Clause
      Procedure Division in COBOL Debug
          The USE FOR DEBUGGING Statement
          Debugging Lines

   Ch 9.  Communication
       Introduction to the Communication Module
      Data Division in the Communication Module
          Communication Section
          The Communication Description - Complete Entry Skeleton
      Procedure Division in the Communication Module
          The ACCEPT MESSAGE COUNT Statement
          The DISABLE Statement
          The ENABLE Statement
          The RECEIVE Statement
          The SEND Statement

   Ch 10.  Report Writer
       Introduction to the Report Writer Module
          Report Section
          Report Structure
             Vertical Spacing
             Horizontal Spacing
             Data Manipulation
          Report Subdivisions
             Physical Subdivision of a Report
             Logical Subdivisions of a Report
             Procedure Division Report Writer Statements
      Language Concepts
          Report File
          Special Register PAGE-COUNTER
          Special Register LINE-COUNTER
          Subscripting
      Environment Division in the Report Writer Module
          Input-Output Section
          The File-Control Paragraph
          The I-O-Control Paragraph
      Data Division in the Report Writer Module
          The File Description Entry
          The REPORT Clause
          Report Section
             Report Description Entry
             Report Group Description Entry
          The Report Description Entry
          PAGE-COUNTER Rules
          LINE-COUNTER Rules
          The CODE Clause
          The CONTROL Clause
          The PAGE Clause
          Page Regions
          The Report Group Description Entry
          Presentation Rules Tables
             Description
             Organization
             Line Number Clause Notation
             Line Number Clause Sequence Substitutions
             Saved Next Group Integer Description
             Report Heading Group Presentation Rules
             Page Heading Group Presentation Rules
             Body Group Presentation Rules
             Page Footing Presentation Rules
      Data Division in the Report Writer Module (cont.)
          Presentation Rules Tables (cont.)
             Report Footing Presentation Rules
          The COLUMN NUMBER Clause
          The DATA-NAME Clause
          The GROUP INDICATE Clause
          Level-Number
          The LINE NUMBER Clause
          The NEXT GROUP Clause
          The SIGN Clause
          The SOURCE Clause
          The SUM Clause
          The TYPE Clause
          The USAGE Clause
          The VALUE Clause
      Procedure Division in the Report Writer Module
          General Description
          The CLOSE Statement
          The GENERATE Statement
          The INITIATE Statement
          The OPEN Statement
          The SUPPRESS Statement
          The TERMINATE Statement
          The USE BEFORE REPORTING Statement

   Ch 11.  Double-Byte Character Set
       Introduction to Double-Byte Character Set Support
      DBCS Data
      Roman Script in DBCS
      Multivendor Integration Architecture Support
      Source Programs
      Language Extensions
      Comments and Comment-entries
      User-defined Words
      Spaces
      Data Items
          DBCS Data Items
          Mixed Data Items
      Literals
          DBCS Literals
             Category of DBCS Literals
          Mixed Literals
          Figurative Constants
          The "N" literal
      Program Structure
          The END PROGRAM Header
      Identification Division in the DBCS Module
          The PROGRAM-ID Paragraph
      Environment Division in the DBCS Module
          The SOURCE-COMPUTER Paragraph
          The OBJECT-COMPUTER Paragraph
          The SPECIAL-NAMES Paragraph
          The FILE-CONTROL Paragraph
      Data Division in the DBCS Module
          The JUSTIFIED Clause
          The PICTURE Clause
          Rules for DBCS Data
          Rule for DBCS Edited Data
             Symbols Used
          Editing Rules
             Fixed Insertion Editing
          The REDEFINES Clause
          RENAMES Clause
          The USAGE Clause
          The VALUE Clause
          CONDITION-NAME Rule
      Procedure Division in the DBCS Module
          Conditional Expressions
             Relation Conditions
             Class Condition
          Move Operation
          The ACCEPT Statement
          The CALL Statement
          The CANCEL Statement
          The INITIALIZE Statement
          The INSPECT Statement
          The MOVE Statement
          The SEARCH Statement
          The STOP Statement
          The STRING Statement
          The UNSTRING Statement

   Ap A. Reserved Words
       Introduction
          Key
          MF Compatibility directive:
      Reserved Words A - B
      Reserved Words C
      Reserved Words D - F
      Reserved Words G - K
      Reserved Words L - O
      Reserved Words P - Q
      Reserved Words R - T
      Reserved Words U - Z

   Ap B. Obsolete Language Elements
       Introduction
      List of Obsolete Language Elements

   Ap C. Data General Interactive COBOL V1.3 Syntax Support
       Introduction
      Long User-defined Names
      Environment Division
          Switch-Names
          File-Name on Disk
          The DATA SIZE Clause
          The INDEX SIZE Clause
          Duplicate Alternate Keys
          Alternate Keys
          I-O Control Paragraph
      Data Division
          VALUE Clause
          The Screen Section
      Procedure Division
          The ACCEPT Statement
          The CALL Statement
          The COPY INDEXED Statement
          The DISPLAY Statement
          File Sharing Syntax
          The OPEN Statement
          The READ Statement

   Ap D. Ryan McFarland COBOL V2.0 Syntax Support
       Introduction
      Environment Division
          The ASSIGN Clause
          The ORGANIZATION Clause
      Data Division
          The VALUE OF LABEL Clause
          Length of Nonnumeric Literals
          Default Sign Representation
          The USAGE Clause
      Procedure Division
          Literals as CALL Parameters
          The EXIT PROGRAM Statement
          Bound Checking
          Size Allocation for Index Data Items
          The STOP RUN Statement
          Non-Standard Operations on Alphanumeric Data Items
          The PERFORM Statement
          Procedure Names
          REWRITE on LINE SEQUENTIAL Files
          OPEN and CLOSE on SEQUENTIAL Files
          The ACCEPT Statement
          The DISPLAY Statement
          File I-O Status Codes
          Locked Records

   Ap E. Microsoft COBOL V1.0 and V2.0 Syntax Support
       Introduction
      Special Registers LIN and COL
      Environment Division
          The Special-Names Paragraph
      Data Division
          The USAGE Clause
      Procedure Division
          The Position-Specification Phrase
          The ACCEPT Statement
          The DISPLAY Statement
          The EXHIBIT Statement
      Microsoft V2.0 Additional Syntax Support
          Record LOCKING
          OPEN LOCKING Statement
          READ Statement (in Manual mode)
          START Statement
          UNLOCK Statement

   Ap F. DOS/VS COBOL Support
       Introduction

   Ap G. Character Sets and Collating Sequences
       Introduction

   Ap H. Syntax Summary for COBOL Standard Features
      General Format for Identification Division
      General Format for Environment Division
          General Format for File-Control Entry
             Sequential Files
             Relative Files
             Indexed Files
             Sort-Merge
      General Format for Data Division
          General Format for File Description Entry
             Sort-Merge File
             Report File
          General Format for Data Description Entry
          General Format for Communication Description Entry
          General Format for Report Description Entry
      General Format For Report Group Description Entry
      General Format for Intrinsic Functions
      General Format for Procedure Division
          General Format for Procedure Division (cont.)
             Declarative Format
             Non-Declarative Format
             Systems Programming Extension Format
          General Format for Verbs
          General Format for COPY Statement
          General Format for Conditions
             Relation Conditions
             Class Condition
             Sign Condition
             Condition-Name-Condition
             Switch-Status Condition
             Negated Simple Condition
             Abbreviated Combined Relation Condition
          Miscellaneous Formats
             Qualification
             Subscripting and Indexing
             Identifier

   Ap I. VS COBOL II Compatibility
       Introduction

   Ap J. Conditional Compilation
       Introduction
      General Rules for all Conditional Compilation Statements
      IF Statement with Conditional Compilation
      ELSE Statement with Conditional Compilation
      END Statement with Conditional Compilation
      DISPLAY Statement with Conditional Compilation

   Ap K. File Status
       ANSI File Status Summary
          ANSI'74 File Status Codes
          ANSI'85 File Status Codes

   Ap L. SQL Database Interface
       Introduction
      SQL in COBOL Programs
      Host Variables
          Small Integer
          Large Integer
          Varying Length Character Strings
          Fixed Length Character Strings
          Decimal
          Float
      The EXEC SQL Statement
      The INCLUDE Statement
      The DECLARE TABLE Statement
      Undeclared Host Variables
      Qualified Host Variables
      Host Variable Groups and Indicator Arrays
      The NOT Operator (-)
      SQL Communications Area

   Ap M. Glossary
       Introduction
      Definitions
      Definitions (cont.)
   INDEX
       Index



MPE/iX 5.0 Documentation