ANS DIBOL Language Reference Manual

*HyperReader

  CONTENTS

  Title Page

  Copyright Page

  Preface

  1      ANS DIBOL Language Elements

  1.1     DIBOL Character Set

  1.2     Statement Types
    1.2.1      Compiler Directives and Declarations
    1.2.2      Data Specification Statements
    1.2.3      Data Manipulation Statements
    1.2.4      Control Statements
    1.2.5      Intertask Communications Statements
    1.2.6      Input/Output Statements

  1.3     Program Structure

  1.4     Statement Line Syntax

  1.5     Procedure Division Statement Labels

  1.6     Literals
    1.6.1      Error Mnemonics

  1.7     Expressions
    1.7.1      Alpha Expressions
    1.7.2      Numeric Expressions

  2      ANS DIBOL Data Division

  2.1     RECORD Statement

  2.2     COMMON Statement

  2.3     Field Definitions

  2.4     SUBROUTINE Statement
    2.4.1      Subroutine Argument Definition

  3      ANS DIBOL Procedure Division

  3.1     Value Assignment Statements
    3.1.1      Moving Alpha Data
    3.1.2      Moving Numeric Data
    3.1.3      Alpha-to-Numeric Conversion
    3.1.4      Numeric-to-Alpha Conversion
    3.1.5      Formatting Data
    3.1.6      Clearing Variables

  3.2     Array Subscripting

  3.3     Substrings
    3.3.1      Absolute Substring Specification
    3.3.2      Relative Substring Specification

  3.4     ACCEPT

  3.5     BEGIN-END Block

  3.6     CALL

  3.7     CLEAR

  3.8     CLOSE

  3.9     DECR

  3.10    DELETE

  3.11    DETACH

  3.12    DISPLAY

  3.13    DO-UNTIL

  3.14    EXIT

  3.15    EXITLOOP

  3.16    FOR

  3.17    FORMS

  3.18    GOTO

  3.19    GOTO (Computed)

  3.20    IF

  3.21    IF-THEN-ELSE

  3.22    INCR

  3.23    LOCASE

  3.24    LPQUE

  3.25    NEXTLOOP

  3.26    OFFERROR

  3.27    ONERROR

  3.28    OPEN

  3.29    READ (Indexed File)

  3.30    READ (Relative File)

  3.31    READS

  3.32    RECV

  3.33    REPEAT

  3.34    RETURN

  3.35    SEND

  3.36    SLEEP

  3.37    STOP

  3.38    STORE

  3.39    UNLOCK

  3.40    UPCASE

  3.41    USING

  3.42    WHILE

  3.43    WRITE (Indexed File)

  3.44    WRITE (Relative File)

  3.45    WRITES

  3.46    XCALL

  3.47    XRETURN

  4      ANS DIBOL Compiler Directives

  4.1     .END

  4.2     .IFDEF-.ELSE-.ENDC

  4.3     .IFNDEF-.ELSE-.ENDC

  4.4     .INCLUDE

  4.5     .LIST

  4.6     .MAIN

  4.7     .NOLIST

  4.8     .PAGE

  4.9     .PROC

  4.10    .SUBROUTINE

  4.11    .TITLE

  5      ANS DIBOL External Subroutines

  5.1     ASCII

  5.2     DATE

  5.3     DECML

  5.4     DELET

  5.5     ERROR

  5.6     FATAL

  5.7     FILEC

  5.8     FLAGS

  5.9     INSTR

  5.10    MONEY

  5.11    RENAM

  5.12    RSTAT

  5.13    SIZE

  5.14    TIME

  5.15    TTSTS

  A   ANS DIBOL Character Set

  B   Error Handling

  B.1     Error Numbers

  B.2     Error Mnemonics

  B.3     Error Conditions

  Glossary

  EXAMPLES

  1-1        ANS DIBOL Program Structure

  FIGURES

  1-1        Truth Table

  3-1        Valid Combinations of Mode:Submode

  5-1        FLAGS Option Fields

  5-2        RENAM Flowchart

  TABLES

  1-1        ANS DIBOL Delimiters

  1-2        Table Of Operator Precedence (from Highest to Lowest)

  1-3        Binary Operator Table

  1-4        Truth Table

  3-1        Format Control Characters

  3-2        Shared File Access

  5-1        FLAGS Argument Parameter Assignments

  A-1        ANS DIBOL Character Set