Compaq COBOL
User Manual


Previous Contents Index

Chapter 3
3 Handling Nonnumeric Data
     3.1     Storage of Nonnumeric Data
     3.2     Data Organization
         3.2.1         Group Items
         3.2.2         Elementary Items
     3.3     Special Characters
     3.4     Testing Nonnumeric Items
         3.4.1         Relation Tests of Nonnumeric Items
             3.4.1.1             Classes of Data
             3.4.1.2             Comparison Operations
         3.4.2         Class Tests for Nonnumeric Items
     3.5     Data Movement
     3.6     Using the MOVE Statement
         3.6.1         Group Moves
         3.6.2         Elementary Moves
             3.6.2.1             Edited Moves
             3.6.2.2             Justified Moves
         3.6.3         Multiple Receiving Items
         3.6.4         Subscripted Moves
         3.6.5         Common Nonnumeric Item MOVE Statement Errors
         3.6.6         Using the MOVE CORRESPONDING Statement for Nonnumeric Items
         3.6.7         Using Reference Modification
Chapter 4
4 Handling Tables
     4.1     Defining Tables
         4.1.1         Defining Fixed-Length, One-Dimensional Tables
         4.1.2         Defining Fixed-Length, Multidimensional Tables
         4.1.3         Defining Variable-Length Tables
         4.1.4         Storage Allocation for Tables
             4.1.4.1             Using the SYNCHRONIZED Clause
     4.2     Initializing Values of Table Elements
     4.3     Accessing Table Elements
         4.3.1         Subscripting
         4.3.2         Subscripting with Literals
         4.3.3         Subscripting with Data Names
         4.3.4         Subscripting with Indexes
         4.3.5         Relative Indexing
         4.3.6         Index Data Items
         4.3.7         Assigning Index Values Using the SET Statement
             4.3.7.1             Assigning an Integer Index Value with a SET Statement
             4.3.7.2             Incrementing an Index Value with the SET Statement
         4.3.8         Identifying Table Elements Using the SEARCH Statement
             4.3.8.1             Implementing a Sequential Search
             4.3.8.2             Implementing a Binary Search
Chapter 5
5 Using the STRING, UNSTRING, and INSPECT Statements
     5.1     Concatenating Data Using the STRING Statement
         5.1.1         Multiple Sending Items
         5.1.2         Using the DELIMITED BY Phrase
         5.1.3         Using the POINTER Phrase
         5.1.4         Using the OVERFLOW Phrase
         5.1.5         Common STRING Statement Errors
     5.2     Separating Data Using the UNSTRING Statement
         5.2.1         Multiple Receiving Items
         5.2.2         Controlling Moved Data Using the DELIMITED BY Phrase
             5.2.2.1             Multiple Delimiters
         5.2.3         Using the COUNT Phrase
         5.2.4         Saving UNSTRING Delimiters Using the DELIMITER Phrase
         5.2.5         Controlling UNSTRING Scanning Using the POINTER Phrase
         5.2.6         Counting UNSTRING Receiving Items Using the TALLYING Phrase
         5.2.7         Exiting an UNSTRING Statement Using the OVERFLOW Phrase
         5.2.8         Common UNSTRING Statement Errors
     5.3     Examining and Replacing Characters Using the INSPECT Statement
         5.3.1         Using the TALLYING and REPLACING Options of the INSPECT Statement
         5.3.2         Restricting Data Inspection Using the BEFORE/AFTER Phrase
         5.3.3         Implicit Redefinition
         5.3.4         Examining the INSPECT Operation
             5.3.4.1             Setting the Scanner
             5.3.4.2             Active/Inactive Arguments
             5.3.4.3             Finding an Argument Match
         5.3.5         The TALLYING Phrase
             5.3.5.1             The Tally Counter
             5.3.5.2             The Tally Argument
             5.3.5.3             The Tally Argument List
             5.3.5.4             Interference in Tally Argument Lists
         5.3.6         Using the REPLACING Phrase
             5.3.6.1             The Search Argument
             5.3.6.2             The Replacement Value
             5.3.6.3             The Replacement Argument
             5.3.6.4             The Replacement Argument List
             5.3.6.5             Interference in Replacement Argument Lists
         5.3.7         Using the CONVERTING Option
         5.3.8         Common INSPECT Statement Errors
Chapter 6
6 Processing Files and Records
     6.1     Defining Files and Records
         6.1.1         File Organization
         6.1.2         Record Format
         6.1.3         File Design
     6.2     Identifying Files and Records from Within Your Compaq COBOL Program
         6.2.1         Defining a File Connector
         6.2.2         Specifying File Organization and Record Access Mode
     6.3     Creating and Processing Files
         6.3.1         Opening and Closing Files
         6.3.2         File Handling for Sequential and Line Sequential Files
         6.3.3         File Handling for Relative Files
         6.3.4         File Handling for Indexed Files
     6.4     Reading Files
         6.4.1         Reading a Sequential or Line Sequential File
         6.4.2         Reading a Relative File
         6.4.3         Reading an Indexed File
     6.5     Updating Files
         6.5.1         Updating a Sequential or Line Sequential File
         6.5.2         Updating a Relative File
             6.5.2.1             Rewriting a Relative File
             6.5.2.2             Deleting Records from a Relative File
         6.5.3         Updating an Indexed File
     6.6     Backing Up Your Files


Previous Next Contents Index