Michael Coughlan
Page 79
Variable-Length Tables
Summary
Chapter 14: Sorting and Merging SORTING Simple Sorting Simple Sorting Notes
How the Simple SORT Works
Simple Sorting Program
Program Notes
Using Multiple Keys
SORT with Procedures INPUT PROCEDURE Notes
OUTPUT PROCEDURE Notes
How an INPUT PROCEDURE Works Creating an INPUT PROCEDURE
Using an INPUT PROCEDURE to Select Records
Using an INPUT PROCEDURE to Modify Records
Feeding SORT from the Keyboard
OUTPUT PROCEDURE
How the OUTPUT PROCEDURE Works Creating an OUTPUT PROCEDURE
Using an OUTPUT PROCEDURE to Produce a Summary File
Some Interesting Programs Sorting Student Records into Date-of-Entry Order
Sorting Tables
Sorting Tables: ISO 2002 Changes
Merging Files MERGE Verb
MERGE Notes
Merging Province Sales Files
Summary
Chapter 15: String Manipulation The INSPECT Verb INSPECT .. TALLYING: Format 1 Modifying Phrases
INSPECT .. TALLYING Examples
Programmatic Detour
INSPECT .. REPLACING: Format 2 Modifying Phrases
INSPECT .. REPLACING Examples
INSPECT: Format 3
INSPECT .. CONVERTING: Format 4 Using INSPECT .. CONVERTING
INSPECT .. CONVERTING Examples
String Concatenation The STRING Verb
String Concatenation Example
String Splitting The UNSTRING Verb Data-Movement Termination
UNSTRING Termination
UNSTRING Clauses
Notes on UNSTRING
Language Knowledge Examples UNSTRING: Demonstrating the COUNT IN Clause
UNSTRING: Demonstrating ON OVERFLOW and the Effect of Delimiters
UNSTRING: The Effect of the ALL Delimiter
String-Splitting Program
Reference Modification
Intrinsic Functions Using Intrinsic Functions
String Functions String Intrinsic Function Examples
Program Explanation
DATE Functions DATE Examples
DATE Program Explanation
Summary
Chapter 16: Creating Large Systems Subprograms and the COPY Verb
The CALL Verb Parameter-Passing Mechanisms CALL..BY REFERENCE
CALL..BY CONTENT
Subprograms Contained Subprograms
Contained Subprograms vs. External Subprograms
State Memory and the IS INITIAL Phrase
The CANCEL Verb
The IS GLOBAL Clause
The IS COMMON PROGRAM Clause
Example Programs and Their Subprograms External Subprogram
Parameter Passing and Data Visibility
Using IS COMMON PROGRAM
A Practical Example GetStateInfo External Subprogram
The State Knowledge Game
Getting State Information
The IS EXTERNAL Clause IS EXTERNAL Problems
Using IS EXTERNAL Data Items
The COPY Verb The COPY Metalanguage
How COPY Works
How the REPLACING Phrase Works
COPY Examples
Summary
Chapter 17: Direct Access Files Direct Access vs.Sequential Files
Organization of Relative Files
Processing Relative Files Reading a Relative File
Creating a Relative File from a Sequential File
Applying Transactions to a Relative File
Relative Files: Syntax and Semantics Relative Files: SELECT and ASSIGN Clause
Relative File Verbs INVALID KEY Clause
OPEN/CLOSE
READ Verb
WRITE Verb
REWRITE Verb
DELETE Verb
START Verb
Organization of Indexed Files
Processing Indexed Files Reading an Indexed File
Creating an Indexed File from a Sequential File
Using Indexed Files in Combination
Applying Transactions to an Indexed File
Indexed Files: Syntax and Semantics Indexed Files: SELECT and ASSIGN Clause
The Key of Reference
Indexed File Verbs The READ Verb
The WRITE, REWRITE and DELETE Verbs
The START Verb
Comparison of COBOL File Organizations Sequential File Organization Disadvantages of Sequential File Organization
Advantages of Sequential File Organization
Relative File Organization Disadvantages of Relative File Organization
Advantages of Relative File Organization
Indexed File Organization Disadvantages of Indexed File Organization
Advantages of Indexed File Organization
Summary
Introduction General Description Vehicle Master File
Stock Master File
Transaction File
Maintenance Procedure
The Redundant Stock Report
Chapter 18: The COBOL Report Writer Report Writer Example Report: Solace Solar Solutions Problem Specification
Example Report
Report Writer Tasks
Report Writer PROCEDURE DIVISION
So Much Work, So Little Code
How the Report Writer Works
Writing a Report Program Modifying the Specification
Report Groups
PROCEDURE DIVISION Notes
Adding Features to the Report Program
Adding More Features to the Report Program
Report Writer Declaratives
Report Writer Syntax and Semantics ENVIRONMENT DIVISION Entries
FILE SECTION Entries
Report Description (RD) Entries
Report Group Entries RD Entry
LINE NUMBER Clause
NEXT GROUP Clause
The TYPE Clause
Report Group Lines Defining the Print Lines
Defining the Elementary Print Items
The COLUMN NUMBER Clause
The GROUP INDICATE Clause
The SOURCE Clause
The SUM Clause
Subtotaling
Rolling Forward
Crossfooting
The RESET ON Clause
Special Report Writer Registers LINE-COUNTER
PAGE-COUNTER
PROCEDURE DIVISION Report Writer Verbs The INITIATE Verb
The GENERATE Verb
The TERMINATE Verb
Declaratives Using Declaratives with the Report Writer The SUPPRESS PRINTING Statement
Control-Break Registers
Using Declaratives with Files Purchase Requirements File (Indexed)
Book File (Indexed)
Publisher File (Indexed)
Summary
Introduction
File Descriptions
Print Specification
Chapter 19: OO-COBOL Module Strength and Module Coupling
Informational-Strength Modules in COBOL
OO-COBOL The UseDictionary Program
The Dictionary Class
A Formal Introduction to OO-COBOL Objects, Classes, and Methods
Programming with Objects
Registering a Class
Declaring Object References
Sending Messages to Instance Objects
Creating a New Object Instance
Destroying Objects
Predefined Object Identifiers
Writing Your Own Classes
The Issue of Scope
Summary
Index
bkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -o-filter: grayscale(100%); -ms-filter: grayscale(100%); filter: grayscale(100%); " class="sharethis-inline-share-buttons">share