RM/COBOL Language Reference Manual - Micro Focus · RM/COBOL Language Reference Manual ix . Concept...

579
Micro Focus RM/COBOL RM/COBOL Language Reference Manual

Transcript of RM/COBOL Language Reference Manual - Micro Focus · RM/COBOL Language Reference Manual ix . Concept...

  • Micro Focus RM/COBOL

    RM/COBOL Language Reference Manual

  • Micro Focus The Lawn 22-30 Old Bath Road Newbury, Berkshire RG14 1QN UK http://www.microfocus.com

    Copyright © Micro Focus 2017. All rights reserved.

    MICRO FOCUS, the Micro Focus logo, and Micro Focus product names are trademarks or registered trademarks of Micro Focus Development Limited or its subsidiaries or affiliated companies in the United States, United Kingdom, and other countries. All other marks are the property of their respective owners.

    Revised 2017-05-12 for version 12.14

  • RM/COBOL Language Reference Manual iii

    Contents

    Preface ...................................................................................................... 1 Organization of Information ...................................................................................................... 1 Conventions and Symbols .......................................................................................................... 2 Related Publications................................................................................................................... 3

    Chapter 1: Language Structure ............................................................. 5 Overview .................................................................................................................................... 5 Character Set .............................................................................................................................. 5 Separators .................................................................................................................................. 6 Character-Strings ....................................................................................................................... 7

    COBOL Words ................................................................................................................... 7 User-Defined Words .................................................................................................... 8 System-Names ........................................................................................................... 11 Reserved Words ......................................................................................................... 12 Context-Sensitive Words ........................................................................................... 21

    Literals .............................................................................................................................. 21 Numeric Literals ........................................................................................................ 21 Nonnumeric Literals .................................................................................................. 21 Figurative Constants .................................................................................................. 22 Concatenation Expressions ........................................................................................ 24

    PICTURE Character-Strings ............................................................................................. 24 Comment-Entry ................................................................................................................ 25

    Program Structure .................................................................................................................... 25 Source Format ................................................................................................................... 25 Continuation of Lines ....................................................................................................... 27 Blank Lines ....................................................................................................................... 27 Comment Lines ................................................................................................................. 28 In-Line Comments ............................................................................................................ 28 Debugging Lines ............................................................................................................... 28 Pseudo-Text ...................................................................................................................... 29 Statements ......................................................................................................................... 29

    Directive Statements .................................................................................................. 29 Conditional Statements .............................................................................................. 29

    Conditional Phrases ............................................................................................ 30 Imperative Statements ............................................................................................... 30 Delimited Scope Statements ...................................................................................... 31

    Scope of Statements ........................................................................................... 31 Sentences .......................................................................................................................... 31 Clauses and Entries ........................................................................................................... 31 Paragraphs ........................................................................................................................ 32 Sections ............................................................................................................................. 32 Divisions ........................................................................................................................... 32 Source Program General Format ...................................................................................... 32

  • iv RM/COBOL Language Reference Manual

    Inter-Program Communication ................................................................................................ 33 Nested Source Programs ................................................................................................... 33 File Connector .................................................................................................................. 33 Global Names and Local Names....................................................................................... 34 External Objects and Internal Objects .............................................................................. 34 Common Programs and Initial Programs .......................................................................... 35 Sharing Data in a Run Unit ............................................................................................... 35 Sharing Files in a Run Unit ............................................................................................... 36 Scope of Names ................................................................................................................ 36

    Program-Names ......................................................................................................... 37 Condition-Names, Constant-Names, Data-Names, File-Names, Record-Names and Split-Key-Names ....................................................................................................... 37 Index-Names .............................................................................................................. 38

    Initial State of a Program ......................................................................................................... 38 End Program Header ................................................................................................................ 39 COPY Statement ...................................................................................................................... 40 REPLACE Statement ............................................................................................................... 44 Compiler Directives ................................................................................................................. 46

    IMP Directive ................................................................................................................... 46 IMP MARGIN-R ....................................................................................................... 46

    LISTING Directive ........................................................................................................... 47 PAGE Directive ................................................................................................................ 47

    Chapter 2: Identification Division ........................................................ 49 Identification Division Structure .............................................................................................. 49 Program Identification ............................................................................................................. 50

    PROGRAM-ID Paragraph ................................................................................................ 50 AUTHOR, INSTALLATION, DATE-WRITTEN, SECURITY, and REMARKS Paragraphs ........................................................................................................................ 50 DATE-COMPILED Paragraph ......................................................................................... 51

    Chapter 3: Environment Division ........................................................ 53 Environment Division Structure .............................................................................................. 53 Configuration Section .............................................................................................................. 56

    SOURCE-COMPUTER Paragraph .................................................................................. 56 OBJECT-COMPUTER Paragraph.................................................................................... 56 SPECIAL-NAMES Paragraph .......................................................................................... 57

    ALPHABET Clause .................................................................................................. 59 Code Name Alphabets ........................................................................................ 61 Literal Alphabets ................................................................................................ 61 Indexed File Alphabets ....................................................................................... 62 EBCDIC Translation .......................................................................................... 62

    CLASS Clause ........................................................................................................... 63 CONSOLE IS CRT Clause ........................................................................................ 63 CRT STATUS Clause ............................................................................................... 63 CURRENCY SIGN Clause ....................................................................................... 64 CURSOR Clause ....................................................................................................... 64 DECIMAL-POINT Clause ........................................................................................ 65 Mnemonic-Name Clause ........................................................................................... 65 NUMERIC SIGN Clause ........................................................................................... 66 SYMBOLIC CHARACTERS Clause ....................................................................... 67

    Input-Output Section ................................................................................................................ 68 FILE-CONTROL Paragraph ............................................................................................. 68

    File Control Entry ...................................................................................................... 69

  • RM/COBOL Language Reference Manual v

    SELECT Clause ................................................................................................. 70 ACCESS MODE Clause .................................................................................... 71 ASSIGN Clause .................................................................................................. 72 CODE-SET Clause ............................................................................................. 73 COLLATING SEQUENCE Clause .................................................................... 74 FILE STATUS Clause ........................................................................................ 74 LOCK MODE Clause......................................................................................... 75 ORGANIZATION Clause .................................................................................. 76

    Sequential .................................................................................................... 76 Relative ....................................................................................................... 76 Indexed ........................................................................................................ 76

    PADDING CHARACTER Clause ..................................................................... 76 RECORD DELIMITER Clause.......................................................................... 77 RECORD KEY and ALTERNATE RECORD KEY Clauses ............................ 78 RESERVE Clause .............................................................................................. 79

    Sort-Merge File Control Entry ................................................................................... 80 SELECT Clause ................................................................................................. 80 ASSIGN Clause .................................................................................................. 80

    I-O-CONTROL Paragraph ............................................................................................... 81 RERUN Clause .......................................................................................................... 81 SAME Clause ............................................................................................................ 82 MULTIPLE FILE TAPE Clause ............................................................................... 83

    Chapter 4: Data Division ...................................................................... 85 Data Division Structure............................................................................................................ 85 File Section .............................................................................................................................. 87

    File Description Entry ....................................................................................................... 87 Sort-Merge File Description Entry ................................................................................... 88

    File Description Clauses .......................................................................................................... 89 BLOCK CONTAINS Clause ............................................................................................ 89 CODE-SET Clause ........................................................................................................... 89 DATA RECORDS Clause ................................................................................................ 90 EXTERNAL Clause ......................................................................................................... 90 GLOBAL Clause .............................................................................................................. 90 LABEL RECORDS Clause .............................................................................................. 91 LINAGE Clause................................................................................................................ 91 RECORD Clause .............................................................................................................. 95 VALUE OF Clause ........................................................................................................... 97

    Working-Storage Section ......................................................................................................... 97 Linkage Section ....................................................................................................................... 98 Communication Section ......................................................................................................... 100 Screen Section........................................................................................................................ 100 Record Description Entry ...................................................................................................... 101

    Level-Numbers ............................................................................................................... 101 Elementary Items ............................................................................................................ 101

    77-Level Description Entry .................................................................................................... 102 Data Description Entry .......................................................................................................... 102

    Condition-Name Data Description Entry ........................................................................ 105 Constant-Name Data Description Entry ......................................................................... 105 BLANK WHEN ZERO Clause ...................................................................................... 105 Data-Name or FILLER Clause ....................................................................................... 106 EXTERNAL Clause ....................................................................................................... 106 GLOBAL Clause ............................................................................................................ 107 JUSTIFIED Clause ......................................................................................................... 107 Level-Number ................................................................................................................. 108

  • vi RM/COBOL Language Reference Manual

    OCCURS Clause ............................................................................................................ 108 PICTURE Clause ............................................................................................................ 110

    Implied PICTURE Clause ....................................................................................... 111 Nonnumeric Implied PICTURE Clause ........................................................... 111 Numeric Implied PICTURE Clause ................................................................. 112 Implied PICTURE Clause and Other Data Description Clauses ...................... 112

    PICTURE Character-Strings (Data Categories) ...................................................... 112 Symbols Used in a PICTURE Character-String ...................................................... 113 Editing Rules ........................................................................................................... 116

    Simple Insertion Editing ................................................................................... 117 Special Insertion Editing .................................................................................. 117 Fixed Insertion Editing ..................................................................................... 117 Floating Insertion Editing ................................................................................. 118 Zero Suppression Editing ................................................................................. 119

    PICTURE Symbols Precedence .............................................................................. 120 REDEFINES Clause ....................................................................................................... 121 RENAMES Clause ......................................................................................................... 122 SAME AS Clause ........................................................................................................... 123 SIGN Clause ................................................................................................................... 124 SYNCHRONIZED Clause ............................................................................................. 126 USAGE Clause ............................................................................................................... 127

    COMPUTATIONAL Usage .................................................................................... 128 COMPUTATIONAL-1 Usage ................................................................................. 129 COMPUTATIONAL-3 or PACKED-DECIMAL Usage ........................................ 129 COMPUTATIONAL-4 or BINARY Usage ............................................................ 129 COMPUTATIONAL-5 Usage ................................................................................. 130 COMPUTATIONAL-6 Usage ................................................................................. 131 DISPLAY Usage ..................................................................................................... 131 INDEX Usage .......................................................................................................... 131 POINTER Usage ..................................................................................................... 132

    VALUE Clause ............................................................................................................... 132 Data Item Initialization Rules (Format 1 VALUE Clause) ...................................... 134 Condition-Name Rules (Format 2 VALUE Clause) ................................................ 135 Constant-Name Rules (Format 3 VALUE Clause) .................................................. 135

    Communication Description Entry ........................................................................................ 137 Input CD General Rules .................................................................................................. 139 Output CD General Rules ............................................................................................... 142 Input-Output CD General Rules ..................................................................................... 143 Status Key Conditions .................................................................................................... 146 Error Key Values ............................................................................................................ 147

    Screen Description Entry ....................................................................................................... 148 AUTO Clause ................................................................................................................. 151 BACKGROUND Clause ................................................................................................ 151 BELL Clause .................................................................................................................. 152 BLANK LINE Clause ..................................................................................................... 152 BLANK REMAINDER Clause ...................................................................................... 153 BLANK SCREEN Clause .............................................................................................. 153 BLANK WHEN ZERO Clause ...................................................................................... 153 BLINK Clause ................................................................................................................ 154 COLUMN Clause ........................................................................................................... 154 ERASE Clause ................................................................................................................ 154 FOREGROUND Clause ................................................................................................. 155 FULL Clause .................................................................................................................. 155 HIGHLIGHT and LOWLIGHT Clauses ........................................................................ 156 JUSTIFIED Clause ......................................................................................................... 156 LINE Clause ................................................................................................................... 156

  • RM/COBOL Language Reference Manual vii

    PICTURE Clause ............................................................................................................ 158 REQUIRED Clause ........................................................................................................ 158 REVERSE Clause ........................................................................................................... 159 SECURE Clause ............................................................................................................. 159 SIGN Clause ................................................................................................................... 159 UNDERLINE Clause ...................................................................................................... 159 USAGE Clause ............................................................................................................... 160 VALUE Clause ............................................................................................................... 160

    Data Structures ....................................................................................................................... 160 Classes of Data ............................................................................................................... 160 Standard Alignment Rules .............................................................................................. 161

    Uniqueness of Reference ....................................................................................................... 161 Qualification ................................................................................................................... 162 Subscripting .................................................................................................................... 164 Reference Modification .................................................................................................. 165 Identifier ......................................................................................................................... 166 Condition-Name ............................................................................................................. 166 Index-Name .................................................................................................................... 167

    Table Handling ...................................................................................................................... 167 Table Definition .............................................................................................................. 168 References to Table Items ............................................................................................... 169

    Chapter 5: Procedure Division .......................................................... 171 Procedure Division Header .................................................................................................... 171 Procedure Division Structure ................................................................................................. 174 Procedures .............................................................................................................................. 175 Execution ............................................................................................................................... 175 Procedure References............................................................................................................. 175 Explicit and Implicit Transfers of Control ............................................................................. 176 Segmentation ......................................................................................................................... 177

    Segments ......................................................................................................................... 177 Fixed Portion ........................................................................................................... 177 Independent Segments ............................................................................................. 178

    Segmentation Classification ........................................................................................... 178 Segmentation Control ..................................................................................................... 179 Restrictions on Program Flow ........................................................................................ 179

    ALTER Statement Restrictions ............................................................................... 179 PERFORM Statement Restrictions .......................................................................... 179 MERGE Statement Restrictions .............................................................................. 179 SORT Statement Restrictions .................................................................................. 179

    USE Statement ....................................................................................................................... 180 Common Rules ...................................................................................................................... 182

    Subscript Evaluation ....................................................................................................... 182 Arithmetic Statements .................................................................................................... 182

    Modes of Operation ................................................................................................. 182 Composite Size ........................................................................................................ 183 ROUNDED Phrase .................................................................................................. 183 Size Error Condition ................................................................................................ 183

    Overlapping Operands .................................................................................................... 184 Incompatible Data ........................................................................................................... 185

    Arithmetic Expressions .......................................................................................................... 185 Arithmetic Operators ...................................................................................................... 186 Formation and Evaluation Rules ..................................................................................... 186

    Conditional Expressions ........................................................................................................ 187 Simple Conditions .......................................................................................................... 187

  • viii RM/COBOL Language Reference Manual

    Relation Condition ................................................................................................... 187 Comparison of Numeric Operands ................................................................... 189 Comparison of Nonnumeric Operands ............................................................. 189 Comparisons of Index-Names and Index Data Items ....................................... 190 Comparison of Pointer Data Items ................................................................... 190 LIKE Condition (Special Case of Relation Condition) .................................... 190

    Class Condition ....................................................................................................... 198 Sign Condition ......................................................................................................... 200 Condition-Name Condition (Conditional Variable) ................................................ 200 Switch-Status Condition .......................................................................................... 200

    Complex Conditions ....................................................................................................... 201 Negated Conditions ................................................................................................. 201 Combined Conditions .............................................................................................. 201 Abbreviated Combined Relation Conditions ........................................................... 202

    Condition Evaluation Rules ............................................................................................ 202 Sequential Organization Input-Output ................................................................................... 203

    Function .......................................................................................................................... 203 Organization ................................................................................................................... 203 Access Mode ................................................................................................................... 203 File Position Indicator ..................................................................................................... 203 I-O Status ........................................................................................................................ 203 At End Condition ............................................................................................................ 206

    Relative Organization Input-Output ....................................................................................... 207 Function .......................................................................................................................... 207 Organization ................................................................................................................... 208 Access Modes ................................................................................................................. 208 File Position Indicator ..................................................................................................... 208 I-O Status ........................................................................................................................ 208 Invalid Key Condition .................................................................................................... 211 At End Condition ............................................................................................................ 212

    Indexed Organization Input-Output ....................................................................................... 213 Function .......................................................................................................................... 214 Organization ................................................................................................................... 214 Access Modes ................................................................................................................. 214 File Position Indicator ..................................................................................................... 214 I-O Status ........................................................................................................................ 215 Invalid Key Condition .................................................................................................... 218 At End Condition ............................................................................................................ 219

    File Locking ........................................................................................................................... 220 Record Locking ...................................................................................................................... 221

    Record Locking Modes ................................................................................................... 222 Automatic Record Locking Modes .......................................................................... 222 Manual Record Locking Modes .............................................................................. 223 Single Record Locking Modes ................................................................................ 223 Multiple Record Locking Modes ............................................................................. 224

    Interactive Terminal I-O ........................................................................................................ 224 Sort-Merge ............................................................................................................................. 225 Communication Facility ......................................................................................................... 225

    Message Control System ................................................................................................ 225 Object Program ............................................................................................................... 226 Relationship of the Object Program to the Message Control System and Communication Devices ........................................................................................................................... 226 Invoking the Object Program .......................................................................................... 226 Scheduled Initiation of the Object Program .................................................................... 227 Invocation of the Object Program by the Message Control System ............................... 227 Determining the Method of Scheduling .......................................................................... 227

  • RM/COBOL Language Reference Manual ix

    Concept of Messages and Message Segments ................................................................ 228 Concept of Queues .......................................................................................................... 228 Independent Enqueueing and Dequeueing ...................................................................... 228 Enabling and Disabling Queues ...................................................................................... 229 Queue Hierarchy ............................................................................................................. 229

    Chapter 6: Procedure Division Statements ...................................... 231 ACCEPT . . . FROM Statement ............................................................................................. 231 ACCEPT Statement (Terminal I-O) ...................................................................................... 234

    AUTO Phrase.................................................................................................................. 237 BEEP or NO BEEP Phrase ............................................................................................. 237 BLINK Phrase ................................................................................................................ 238 CONTROL Phrase .......................................................................................................... 238 CONVERT Phrase .......................................................................................................... 239 CURSOR Phrase ............................................................................................................. 240 ECHO Phrase .................................................................................................................. 241 ERASE Phrase ................................................................................................................ 241 ON EXCEPTION and NOT ON EXCEPTION Phrases ................................................. 241 HIGH, LOW and OFF Phrases ....................................................................................... 242 LINE and POSITION Phrases ........................................................................................ 243

    Determining Line and Position ................................................................................ 244 MODE IS BLOCK Phrase .............................................................................................. 244 PROMPT Phrase ............................................................................................................. 244 REVERSE Phrase ........................................................................................................... 245 SIZE Phrase .................................................................................................................... 245 TAB Phrase ..................................................................................................................... 246 TIME Phrase ................................................................................................................... 246 UNIT Phrase ................................................................................................................... 247 UPDATE Phrase ............................................................................................................. 247

    ACCEPT MESSAGE COUNT Statement ............................................................................. 248 ACCEPT Screen-Name Statement ......................................................................................... 249 ADD Statement ...................................................................................................................... 252

    CORRESPONDING Phrase ........................................................................................... 253 ALTER Statement .................................................................................................................. 254 CALL Statement .................................................................................................................... 255

    USING Phrase ................................................................................................................ 258 GIVING Phrase .............................................................................................................. 259 OVERFLOW, EXCEPTION, and NOT EXCEPTION Phrases ..................................... 260

    CALL PROGRAM Statement ............................................................................................... 261 CANCEL Statement............................................................................................................... 262 CLOSE Statement .................................................................................................................. 264

    REEL and UNIT Phrases ................................................................................................ 264 NO REWIND Phrase ...................................................................................................... 265 REMOVAL Phrase ......................................................................................................... 265 LOCK Phrase .................................................................................................................. 265

    COMPUTE Statement ........................................................................................................... 266 CONTINUE Statement .......................................................................................................... 267 DELETE Statement (Relative and Indexed I-O).................................................................... 267 DELETE FILE Statement ...................................................................................................... 269 DISABLE Statement .............................................................................................................. 270

    INPUT Phrase ................................................................................................................. 271 I-O TERMINAL Phrase.................................................................................................. 271 OUTPUT Phrase ............................................................................................................. 271 TERMINAL Phrase ........................................................................................................ 271 WITH KEY Phrase ......................................................................................................... 272

  • x RM/COBOL Language Reference Manual

    DISPLAY . . . UPON Statement ............................................................................................ 272 DISPLAY Statement (Terminal I-O) ..................................................................................... 274

    BEEP Phrase ................................................................................................................... 275 BLINK Phrase ................................................................................................................ 276 CONTROL Phrase .......................................................................................................... 276 CONVERT Phrase .......................................................................................................... 276 ERASE Phrase ................................................................................................................ 277 HIGH and LOW Phrases ................................................................................................ 277 LINE and POSITION Phrases ........................................................................................ 278

    Determining Line and Position ................................................................................ 278 MODE IS BLOCK Phrase .............................................................................................. 279 REVERSE Phrase ........................................................................................................... 279 SIZE Phrase .................................................................................................................... 279 UNIT Phrase ................................................................................................................... 280

    DISPLAY Screen-Name Statement ....................................................................................... 280 DIVIDE Statement ................................................................................................................. 282

    REMAINDER Phrase ..................................................................................................... 284 ENABLE Statement ............................................................................................................... 285

    INPUT Phrase ................................................................................................................. 285 I-O TERMINAL Phrase.................................................................................................. 286 OUTPUT Phrase ............................................................................................................. 286 TERMINAL Phrase ........................................................................................................ 286 WITH KEY Phrase ......................................................................................................... 286

    ENTER Statement .................................................................................................................. 287 EVALUATE Statement ......................................................................................................... 288

    General Rules for the EVALUATE Statement ............................................................... 289 EXIT Statement ..................................................................................................................... 291 GOBACK Statement .............................................................................................................. 293 GO TO Statement .................................................................................................................. 294

    DEPENDING ON Phrase ............................................................................................... 294 IF Statement ........................................................................................................................... 295 INITIALIZE Statement .......................................................................................................... 297

    General Rules for the INITIALIZE Statement ............................................................... 297 INSPECT Statement .............................................................................................................. 300

    General Rules for the INSPECT Statement .................................................................... 301 MERGE Statement ................................................................................................................ 307

    General Rules for the MERGE Statement ...................................................................... 308 MOVE Statement ................................................................................................................... 311

    CORRESPONDING Phrase ........................................................................................... 314 MULTIPLY Statement .......................................................................................................... 315 OPEN Statement .................................................................................................................... 316

    INPUT Phrase ................................................................................................................. 319 OUTPUT Phrase ............................................................................................................. 319 I-O Phrase ....................................................................................................................... 319 EXTEND Phrase ............................................................................................................. 320 NO REWIND Phrase ...................................................................................................... 320

    PERFORM Statement ............................................................................................................ 321 PURGE Statement ................................................................................................................. 332 READ Statement .................................................................................................................... 333

    KEY Phrase .................................................................................................................... 336 LOCK Phrase .................................................................................................................. 337 INTO Phrase ................................................................................................................... 338 INVALID KEY and NOT INVALID KEY Phrases ....................................................... 338

    RECEIVE Statement .............................................................................................................. 339 NO DATA and WITH DATA Phrases ........................................................................... 340 MESSAGE Phrase .......................................................................................................... 340

  • RM/COBOL Language Reference Manual xi

    SEGMENT Phrase .......................................................................................................... 341 RELEASE Statement ............................................................................................................. 342

    FROM Phrase ................................................................................................................. 342 RETURN Statement............................................................................................................... 343 REWRITE Statement ............................................................................................................. 344

    FROM Phrase ................................................................................................................. 346 SEARCH Statement ............................................................................................................... 347

    General Rules for the SEARCH Statement..................................................................... 348 SEND Statement .................................................................................................................... 352

    General Rules for the SEND Statement .......................................................................... 353 ADVANCING Phrase .................................................................................................... 354

    SET Statement ....................................................................................................................... 356 General Rules for the SET Statement ............................................................................. 357

    SORT Statement .................................................................................................................... 360 General Rules for the SORT Statement .......................................................................... 361

    START Statement (Relative and Indexed I-O) ...................................................................... 365 SIZE Phrase .................................................................................................................... 368 WHILE Phrase ................................................................................................................ 368 INVALID KEY and NOT INVALID KEY Phrases ....................................................... 370

    STOP Statement ..................................................................................................................... 371 STRING Statement ................................................................................................................ 372

    DELIMITED Phrase ....................................................................................................... 373 POINTER Phrase ............................................................................................................ 374 OVERFLOW and NOT OVERFLOW Phrases .............................................................. 374

    SUBTRACT Statement .......................................................................................................... 375 CORRESPONDING Phrase ........................................................................................... 376

    UNLOCK Statement .............................................................................................................. 377 UNSTRING Statement .......................................................................................................... 378 USE Statement ....................................................................................................................... 380 WRITE Statement .................................................................................................................. 381

    FROM Phrase ................................................................................................................. 383 ADVANCING Phrase .................................................................................................... 383 END-OF-PAGE and NOT END-OF-PAGE Phrases ...................................................... 384 INVALID KEY and NOT INVALID KEY Phrases ....................................................... 385

    Appendix A: Reserved Words ........................................................... 387 Reserved Words ..................................................................................................................... 387 Context-Sensitive Words ....................................................................................................... 393 Special Symbols ..................................................................................................................... 395 Nonreserved System-Names .................................................................................................. 395

    Appendix B: Compiler Messages ...................................................... 399 Compiler Messages ................................................................................................................ 399 Compiler Messages 001—100 ............................................................................................... 400 Compiler Messages 101—200 ............................................................................................... 411 Compiler Messages 201—300 ............................................................................................... 423 Compiler Messages 301—400 ............................................................................................... 433 Compiler Messages 401—500 ............................................................................................... 444 Compiler Messages 501—600 ............................................................................................... 455 Compiler Messages 601—700 ............................................................................................... 459 Compiler Messages 701—800 ............................................................................................... 466 Compiler Messages 801—900 ............................................................................................... 479

    Glossary ............................................................................................... 481

  • xii RM/COBOL Language Reference Manual

    Terms and Definitions............................................................................................................ 481 66-Level-Description-Entry.............................................................................. 481 77-Level-Description-Entry.............................................................................. 481 78-Level-Description-Entry.............................................................................. 481 88-Level-Description-Entry.............................................................................. 481 Abbreviated Combined Relation Condition ..................................................... 481 Access Mode .................................................................................................... 482 Actual Argument .............................................................................................. 482 Actual Decimal Point ....................................................................................... 482 Alphabetic Character ........................................................................................ 482 Alphabet-Name ................................................................................................ 482 Alphanumeric Character ................................................................................... 482 Alternate Record Key ....................................................................................... 482 ANSI ................................................................................................................. 482 Area A .............................................................................................................. 482 Area B .............................................................................................................. 483 Arithmetic Expression ...................................................................................... 483 Arithmetic Operation ........................................................................................ 483 Arithmetic Operator.......................................................................................... 483 Arithmetic Statement ........................................................................................ 483 Ascending Key ................................................................................................. 483 Assumed Decimal Point ................................................................................... 483 At End Condition .............................................................................................. 484 Automatic Multiple .......................................................................................... 484 Automatic Record Locking Modes ................................................................... 484 Automatic Single .............................................................................................. 484 Based Linkage Record ...................................................................................... 484 Binary Allocation Override .............................................................................. 484 Binary Sequential ............................................................................................. 485 Block ................................................................................................................ 485 Bottom Margin ................................................................................................. 485 Called Program ................................................................................................. 485 Calling Program ............................................................................................... 485 Cd-Name .......................................................................................................... 485 Channel-Name .................................................................................................. 485 Character .......................................................................................................... 485 Character Position ............................................................................................ 485 Character-String ............................................................................................... 485 Class Condition ................................................................................................ 486 Class-Name ...................................................................................................... 486 Clause ............................................................................................................... 486 COBOL Character Set ...................................................................................... 486 COBOL Word .................................................................................................. 487 Code-Name ....................................................................................................... 487 Codepage .......................................................................................................... 487 Collating Sequence ........................................................................................... 487 Column ............................................................................................................. 487 Combined Condition ........................................................................................ 487 Comment Line .................................................................................................. 487 Comment Entry ................................................................................................ 487 Common Program ............................................................................................ 488 Communication Description Entry ................................................................... 488 Communication Device .................................................................................... 488 Communication Section ................................................................................... 488 Compile Time ................................................................................................... 488 Compiler Directing Statement .......................................................................... 488

  • RM/COBOL Language Reference Manual xiii

    Compiler Directive ........................................................................................... 488 Complex Condition .......................................................................................... 488 Composite of Operands .................................................................................... 488 Computer-Name ............................................................................................... 489 Concatenation Expression ................................................................................ 489 Condition .......................................................................................................... 489 Conditional Expression .................................................................................... 489 Conditional Phrase ........................................................................................... 489 Conditional Statement ...................................................................................... 489 Conditional Variable ........................................................................................ 489 Condition-Name ............................................................................................... 489 Condition-Name Condition .............................................................................. 490 Configuration Section ....................................................................................... 490 Constant-Expression ......................................................................................... 490 Constant-Name ................................................................................................. 490 Context-Sensitive Word ................................................................................... 490 Contiguous Items .............................................................................................. 490 Counter ............................................................................................................. 490 Currency Sign ................................................................................................... 491 Currency Symbol .............................................................................................. 491 Current Record ................................................................................................. 491 Current Volume Pointer ................................................................................... 491 Data Clause....................................................................................................... 491 Data Description Entry ..................................................................................... 491 Data Item .......................................................................................................... 491 Data-Name........................................................................................................ 491 Debugging Line ................................................................................................ 491 Declarative Sentence ........................................................................................ 491 Declaratives ...................................................................................................... 492 De-Edit ............................................................................................................. 492 Delimited Scope Statement .............................................................................. 492 Delimiter ........................................................................................................... 492 Descending Key ............................................................................................... 492 Destination........................................................................................................ 492 Device Name .................................................................................................... 492 Digit Position .................................................................................................... 492 Directive ........................................................................................................... 492 Division ............................................................................................................ 493 Division Header ................................................................................................ 493 Dynamic Access ............................................................................................... 493 Editing Character .............................................................................................. 493 EGI ................................................................................................................... 493 Elementary Item ............................................................................................... 493 EMI................................................................................................................... 494 End of Group Indicator (EGI) .......................................................................... 494 End of Message Indicator (EMI) ...................................................................... 494 End of Procedure Division ............................................................................... 494 End of Segment Indicator (ESI) ....................................................................... 494 End Program Header ........................................................................................ 494 Entry ................................................................................................................. 494 Environment Clause ......................................................................................... 494 ESI .................................................................................................................... 494 Exclusive File ................................................................................................... 494 Exclusive Mode ................................................................................................ 495 Execution Time ................................................................................................ 495 Explicit Scope Terminator ................................................................................ 495

  • xiv RM/COBOL Language Reference Manual

    Expression ........................................................................................................ 495 Extend Mode .................................................................................................... 495 External Attribute ............................................................................................. 495 External Data .................................................................................................... 495 External Data Item ............................................................................................ 495 External Data Record ....................................................................................... 495 External File Connector .................................................................................... 495 External Switch ................................................................................................ 496 Feature-Name ................................................................................................... 496 Figurative Constant .......................................................................................... 496 File .................................................................................................................... 496 File Access Name ............................................................................................. 496 File Attribute Conflict Condition ..................................................................... 496 File Clause ........................................................................................................ 496 File Connector .................................................................................................. 496 File Control Entry ............................................................................................. 496 File Description Entry ...................................................................................... 496 File Organization .............................................................................................. 497 File Position Indicator ...................................................................................... 497 File Section ....................................................................................................... 497 FILE-CONTROL ............................................................................................. 497 File-Name ......................................................................................................... 497 Fixed File Attributes ......................................................................................... 497 Fixed-Length Record ........................................................................................ 497 Fixed-Form Reference Format ......................................................................... 497 Footing Area ..................................................................................................... 497 Formal Argument ............................................................................................. 498 Format .............................................................................................................. 498 Global Name..................................................................................................... 498 Group Item ....................................................................................................... 498 High Order End ................................................................................................ 498 Identification Area ............................................................................................ 498 Identifier ........................................................................................................... 498 Imperative Statement ........................................................................................ 498 Implicit Scope Terminator ................................................................................ 499 Index ................................................................................................................. 499 Index Data Item ................................................................................................ 499 Indexed File ...................................................................................................... 499 Indexed Organization ....................................................................................... 499 Index-Name ...................................................................................................... 499 Indicator Area ................................................................................................... 499 Initial Program .................................................................................................. 499 Initial State ....................................................................................................... 499 In-Line Comment ............................................................................................. 499 Input File .......................................................................................................... 500 Input Mode ....................................................................................................... 500 Input Procedure ................................................................................................ 500 Input-Output File .............................................................................................. 500 Input-Output Section ........................................................................................ 500 Input-Output Statement .................................................................................... 500 Integer ............................................................................................................... 500 Internal Data ..................................................................................................... 500 Internal Data Item ............................................................................................. 500 Internal File Connector ..................................................................................... 501 Intra-Record Data Structure.............................................................................. 501 Invalid Key Condition ...................................................................................... 501

  • RM/COBOL Language Reference Manual xv

    I-O Mode .......................................................................................................... 501 I-O Status .......................................................................................................... 501 I-O-CONTROL ................................................................................................ 501 I-O-CONTROL Entry ...................................................................................... 501 ISO ................................................................................................................... 501 Key ................................................................................................................... 501 Key of Reference .............................................................................................. 502 Keyword ........................................................................................................... 502 Language-Name ............................................................................................... 502 Letter ................................................................................................................ 502 Level Indicator ................................................................................................. 502 Level-Number .................................................................................................. 502 Library Text ...................................................................................................... 502 Library-Name ................................................................................................... 502 LIKE Relation Condition ................................................................................. 502 LINAGE-COUNTER ....................................................................................... 503 Line Sequential ................................................................................................. 503 Linkage Section ................................................................................................ 503 Literal ............................................................................................................... 503 Lock Mode ....................................................................................................... 503 Logical Operator ............................................................................................... 503 Logical Page ..................................................................................................... 503 Logical Record ................................................................................................. 504 Low Order End ................................................................................................. 504 Low-Volume-I-O-Name ................................................................................... 504 Manual Multiple ............................................................................................... 504 Manual Record Locking Modes ....................................................................... 504 Manual Single ................................................................................................... 504 Margin R .......................................................................................................... 504 Mass Storage .................................................................................................... 504 Mass Storage Control System (MSCS) ............................................................ 505 Mass Storage File ............................................................................................. 505 Maximum Source Record Length ..................................................................... 505 MCS (Message Control System) ...................................................................... 505 Merge File ........................................................................................................ 505 Message ............................................................................................................ 505 Message Control System (MCS) ...................................................................... 505 Message Count ................................................................................................. 505 Message Indicators ........................................................................................... 505 Message Segment ............................................................................................. 506 Mnemonic-Name .............................................................................................. 506 MSCS (Mass Storage Control System) ............................................................ 506 Multiple Record Locking Modes ...................................................................... 506 Native Character Set ......................................................................................... 506 Native Collating Sequence ............................................................................... 506 Negated Combined Condition .......................................................................... 506 Negated Simple Condition ............................................................................... 506 Next Executable Sentence ................................................................................ 506 Next Executable Statement ............................................................................... 506 Next Record ...................................................................................................... 507 Noncontiguous Item ......................................................................................... 507 Nonnumeric Item .............................................................................................. 507 Nonnumeric Literal .......................................................................................... 507 Null ................................................................................................................... 507 Numeric Character............................................................................................ 507 Numeric Item .................................................................................................... 507

  • xvi RM/COBOL Language Reference Manual

    Numeric Literal ................................................................................................ 507 Object Computer Entry ..................................................................................... 507 Object of Entry ................................................................................................. 507 Object Program ................................................................................................. 508 Object Time ...................................................................................................... 508 OBJECT-COMPUTER .................................................................................... 508 Obsolete Element ............................................................................................. 508 OEM ................................................................................................................. 508 Open Mode ....................................................................................................... 508 Operand ............................................................................................................ 508 Operational Sign ............................................................................................... 508 Optional File ..................................................................................................... 509 Optional Word .................................................................................................. 509 Output File ........................................................................................................ 509 Output Mode..................................................................................................... 509 Output Procedure .............................................................................................. 509 Padding Character ............................................................................................ 509 Page Body......................................................................................................... 509 Paragraph .......................................................................................................... 509 Paragraph Header ............................................................................................. 509 Paragraph-Name ............................................................................................... 510 Pattern ............................................................................................................... 510 Phrase ............................................................................................................... 510 Physical Page .................................................................................................... 510 Physical Record ................................................................................................ 510 Pointer Data Item .............................................................................................. 510 Previous Record ............................................................................................... 510 Pr