Programmer's Guide to Writing Programs
Table of Contents
Index
Chapter 1: Writing Programs
1.1 Performance Programming
1.1.1 Data Division Considerations
1.1.1.1 Data Types
1.1.1.2 Large Data Divisions
1.1.2 Procedure Division Considerations
1.1.2.1 Arithmetic Statements
1.1.2.2 Alphanumeric Data Manipulation
1.1.2.3 Table Handling
1.1.2.4 Conditional Statements
1.1.2.5 Logical Operations
1.1.2.6 The PERFORM Statement
1.1.2.7 CALL Statements
1.1.2.7.1 Parameters
1.1.2.8 Sorting Files
1.1.2.9 Large Procedure Divisions
1.1.3 Compiler Directives
1.1.3.1 Using Directives to Optimize for Speed
1.1.3.2 Using Directives to Optimize for Size
1.1.3.3 Using Dynamically Loaded Executable Files
1.1.4 Examining the Native Code
1.2 Avoiding Data Inaccuracies
1.3 Implementation of Floating-point on the 16-bit COBOL System
1.3.1 Range
1.3.2 Accuracy
1.3.3 External Items and Literals
1.4 Implementation of Floating-point on 32-bit and 64-bit COBOL Systems
1.4.1 Range
1.4.2 Accuracy
1.4.3 External Items and Literals
1.4.4 Inaccuracies in Floating-point
1.5 Large Programs
1.5.1 Handling Large Programs on the 16-bit COBOL System
1.5.1.1 Large Data Division
1.5.1.2 Large Procedure Division
1.5.1.3 Segmentation (Overlaying) on the 16-bit COBOL System
1.5.2 Handling Large Programs on 32-bit and 64-bit COBOL Systems
1.5.2.1 Segmentation (Overlaying) on 32-bit and 64-bit COBOL Systems
1.5.3 Inter-program Communication (CALL)
1.5.3.1 Call Requirements (16-bit)
1.5.3.2 Call Requirements (32-bit and 64-bit)
1.5.3.3 Public Symbols and Your Program-Id
1.6 Passing the Command Line
1.7 Calling Subprograms
1.7.1 Calling COBOL Subprograms
1.7.1.1 Calling Statically or Dynamically Linked Programs
1.7.1.2 Calling Dynamically Loadable Programs
1.7.2 Calling Non-COBOL Subprograms
1.7.2.1 RTS Errors 114 and 115
1.8 Program Entry Points
1.9 Program Calling Conventions
1.9.1 Program Names
1.10 Program Management
1.11 Called Program Search Conventions
1.12 The COBDIR Environment Variable
1.12.1 Searching Through Multiple Directories
1.13 Thread-safety