Compaq COBOL
User Manual
Begin
Index
Contents (summary)
Preface
Preface
Chapter 1
Developing Compaq COBOL Programs
Chapter 2
Handling Numeric Data
Chapter 3
Handling Nonnumeric Data
Chapter 4
Handling Tables
Chapter 5
Using the STRING, UNSTRING, and INSPECT Statements
Chapter 6
Processing Files and Records
Chapter 7
Handling Input/Output Exception Conditions
Chapter 8
Sharing Files and Locking Records
Chapter 9
Using the SORT and MERGE Statements
Chapter 10
Producing Printed Reports
Chapter 11
Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms
Chapter 12
Interprogram Communication
Chapter 13
Using Compaq COBOL in the Alpha Common Language Environment
Chapter 14
Using the REFORMAT Utility
Chapter 15
Optimizing Your Compaq COBOL Program
Chapter 16
Managing Memory and Data Access
Appendix A
Compiler Implementation Specifications
Appendix B
Compaq COBOL for OpenVMS VAX and Compaq COBOL Compatibility and Migration
Appendix C
Programming Productivity Tools
Appendix D
Porting to Compaq COBOL from Other Compilers
Index
Figures
Examples
Tables
Contents
Preface
Preface
Preface
Chapter 1
1
Developing Compaq COBOL Programs
1.0.1
Files Installed on Your System
1.1
Compaq COBOL and Alpha Architecture System Resources
1.1.1
Compilation Performance
1.1.2
Tuning OpenVMS Alpha for Large Compaq COBOL Compiles
1.1.2.1
Optimizing Virtual Memory Usage
1.1.2.2
Optimizing Physical Memory Usage
1.1.2.3
Improving Compile Performance with Separate Compilation (OpenVMS)
1.1.3
Choosing a Reference Format
1.1.3.1
Terminal Reference Format
1.1.3.2
Converting Between Reference Formats
1.2
Developing Programs on Tru64 UNIX
1.2.1
Creating a Compaq COBOL Program on Tru64 UNIX
1.2.2
Compiling a Compaq COBOL Program on Tru64 UNIX
1.2.2.1
Format of the COBOL Command on Tru64 UNIX
1.2.2.2
COBOL Command Flags
1.2.2.3
External File Handler Support
1.2.2.4
Specifying Multiple Files and Flags
1.2.2.5
Compiling Multiple Files
1.2.2.6
Debugging a Program
1.2.2.7
Output Files: Object, Executable, Listing, and Temporary Files
1.2.2.8
Naming Output Files
1.2.2.9
Temporary Files
1.2.2.10
Examples of the COBOL Command
1.2.2.11
Other Compilers
1.2.2.12
Interpreting Messages from the Compiler
1.2.3
Linking a Compaq COBOL Program on Tru64 UNIX
1.2.3.1
Specifying Object Libraries for Linking
1.2.3.2
Specifying Additional Object Libraries
1.2.3.3
Specifying Types of Object Libraries
1.2.3.4
Creating Shared Object Libraries
1.2.3.5
Shared Library Restrictions
1.2.3.6
Installing Shared Libraries
1.2.3.7
Interpreting Messages from the Linker
1.2.4
Running a Compaq COBOL Program on Tru64 UNIX
1.2.4.1
Accessing Command-Line Arguments
1.2.4.2
Accessing Environment Variables
1.2.4.3
Errors and Switches
1.2.5
Program Development Stages and Tools
1.3
Developing Programs on OpenVMS Alpha
1.3.1
Creating a Compaq COBOL Program on OpenVMS Alpha
1.3.2
Compiling a Compaq COBOL Program on OpenVMS Alpha
1.3.2.1
Format of the COBOL Command on OpenVMS Alpha
1.3.2.2
Compiling Multiple Files
1.3.2.3
Debugging a Program
1.3.2.4
Separately Compiled Programs
1.3.2.5
COBOL Qualifiers
1.3.2.6
Common Command-Line Errors to Avoid
1.3.2.7
Compiling Programs with Conditional Compilation
1.3.2.8
Interpreting Messages from the Compiler
1.3.2.9
Using Compiler Listing Files
1.3.3
Linking a Compaq COBOL Program
1.3.3.1
The LINK Command
1.3.3.2
LINK Qualifiers
1.3.3.3
Specifying Modules Other than Compaq COBOL Modules
1.3.3.4
Specifying Object Module Libraries
1.3.3.5
Creating Shareable Images
1.3.3.6
Interpreting Messages from the Linker
1.3.4
Running a Compaq COBOL Program
1.3.4.1
Accessing Command-Line Arguments at Run Time
1.3.4.2
Accessing System Logicals at Run Time
1.3.4.3
Accessing Input and Output Devices at Run Time
1.3.4.4
Debugging Environment
1.3.4.5
Interpreting Run-Time Messages
1.4
Program Run Messages
1.4.1
Data Errors
1.4.2
Program Logic Errors
1.4.3
Run-Time Input/Output Errors
1.4.4
I/O Errors and RMS (OpenVMS)
1.5
Using Program Switches
1.5.1
Setting and Controlling Switches Internally
1.5.2
Setting and Controlling Switches Externally
1.6
Special Information for Year 2000 Programming
Chapter 2
2
Handling Numeric Data
2.1
How the Compiler Stores Numeric Data
2.2
Specifying Alignment
2.3
Sign Conventions
2.4
Invalid Values in Numeric Items
2.5
Evaluating Numeric Items
2.5.1
Numeric Relation Test
2.5.2
Numeric Sign Test
2.5.3
Numeric Class Tests
2.5.4
Success/Failure Tests
2.6
Using the MOVE Statement
2.6.1
Elementary Numeric Moves
2.6.2
Elementary Numeric-Edited Moves
2.6.3
Subscripted Moves
2.6.4
Common Move Errors
2.7
Using the Arithmetic Statements
2.7.1
Temporary Work Items
2.7.2
Standard and Native Arithmetic
2.7.2.1
Using the /MATH_INTERMEDIATE Qualifier
2.7.2.2
Using the /ARITHMETIC Qualifier
2.7.3
Specifying a Truncation Qualifier
2.7.4
Using the ROUNDED Phrase
2.7.4.1
ROUNDED with REMAINDER
2.7.5
Using the SIZE ERROR Phrase
2.7.6
Using the GIVING Phrase
2.7.7
Multiple Operands in ADD and SUBTRACT Statements
2.7.8
Common Errors in Arithmetic Statements
Previous
Next
Contents
Index