As beginning programmers enter the field of COBOL programming, their desire is to learn basic COBOL concepts expediently. This book is written for these beginning programmers and students taking their first course in COBOL, and it also brings further clarification to the experienced programmer. Faced with textbooks that are "too technical" or "too intimidating," beginning programmers at DeVry embraced this text, which teaches the language in a "simplified" manner-students see a program completely broken down so that they know exactly what a COBOL program does during its process. It provides a step-by-step method for learning the language. The book is packaged with a data disk containing a working copy of each of the programs outlined in the text.
- Hardback | 276 pages
- 208.28 x 271.78 x 12.7mm | 635.03g
- 15 Sep 2000
- Pearson Education (US)
- United States
Table of contents
1. COBOL: Structured Design and Program Preparation. What is COBOL? Program Development. Program Structure. Program Building Blocks and Direction of Flow. Program Flowcharting Symbols. Program Pseudocode. Structured Walkthrough.2. The COBOL Program Overview. Divisions and Programming Area Overview. Identification Division. Environment Division. Configuration Section. Input-Output Section. Data Division. File Section. Input File Description. Output File Description. Working-Storage Section.3. An Overview of Program Structure. Procedure Division Overview. Hierarchy Chart. Pseudocode. Program Flowchart and Code Example.4. More to Know About the Procedure Division. Sentence and Statements. The OPEN Statement. The READ Statement. The PERFORM Statement. THE CLOSE Statement. The STOP RUN Statement. The MOVE Statement. Multiple Receiving Fields. Different Length Fields. The WRITE Statement.5. A Quick Tour on Error Detection and Correction. Program Error Categories. Basic COBOL Errors and Explanations.6. Data Editing: "Dressing Up" Numeric Data. Zero Suppress. Currency (Dollar Signs ($), Commas (,), and Decimals(.)). Asterisk Filled. Floating Dollar Sign. Printing Numbers as Signed Numbers. Sign is Leading. Sign is Trailing. The Positive (+) Sign. The Floating Sign (Negative and Positive). The Use of DB (Debit) and CR (Credit) Edit. Printing Blacks in the Output. Using Trailing Zeros. Review of Data Editing. Program Flowcharts and Program Code.7. COBOL and Math: True Meaning of Processing. Math Verbs Overview. The ADD Verb. The SUBTRACT Verb. Variable Naming Convention and Allocation of Variable Lengths. When Adding. When Subtracting. The MULTIPLY Verb. Determining the Correct Byte Size. Determining the Rounding Factor. The DIVIDE Verb. Determining the Correct Number of Digits in the Quotient. Determining the Correct Number of Digits in the Remainder. DIVIDE Without Remainder. DIVIDE With Remainder. DIVIDE Without Giving. COMPUTE Statement. More COMPUTE Examples. Program Flowcharts and Program Code.8. Comparing Variables in COBOL-You Are Not Limited to Just One Choice. IF Statement Overview. Comparison Operations. IF Statement Without ELSE Clause. IF Statement Using ELSE Clause. Using NEXT SENTENCE Clause. Nested IF Statements. Program Flowcharts and Program Code.9. Control Breaks in COBOL (Grouping Totals). Control Break Overview. General Control Breaking Strategy. The Correlation of Input Key Field and the Working-Storage Holding Field. The Detail Routine of a Control Break Process. Program Flowcharts and Program Code. Summary of Single-Level Control Break. Multiple-Level Control Break. Program Flowcharts and Program Code.10. Data Validity. Data Validation Overview. Numeric Test. Alphanumeric/Alphabetic Test. Sign Test. The INSPECT Statement. Testing for Reasonableness. Condition Names (88 Levels). The REDEFINES Clause. Program Flowcharts and Program Code.11. Table Processing. Overview of COBOL Tables. The USUAGE Clause. Hard-Coded. One-Dimensional Table Processing. Initializing a One-Dimensional Table. The Table Loading Process. Program Flowchart and Program Code.12. Two-Dimensional Tables. Two-Dimensional Table Overview. Defining the Two-Dimensional Table. Manipulating the Two-Dimensional Table. The PERFORM/VARYING Routine of a Two-Dimensional Table. A Program Specification Layout. The Making of a Two-Dimensional Table. Program Hierarchy Chart and Flowcharts. Two-Dimensional Program Flowchart Explained. Pseudocode and Program Code. Zeroing Out the Two-Dimensional Table. The Input File Layout. Detail Routine (Two-Dimensional Process). Adding Rows and Columns; Calculating Averages. Printing the Two-Dimensional Table Values.13. Table Searching with COBOL. Overview of Searching. The PERFORM/VARYING Process (Sequential Lookup). The SEARCH Verb (Sequential Search). The SEARCH ALL Verb (Binary Search). Program Flowcharts and Program Code.14. Sequential File Processing. Sequential File Overview. Sequential File Creation. Sequential File Updating. Sequential File Update Summary. Sequential File Creation/Update Program Examples.15. Sorting in COBOL. Sorting Overview. Files Involved in the SORT Process. Program Charts and Program Code.16. COBOL85 Changes and Other Important Verbs. COBOL85 Overview. Coding the Period. Area A versus Area B. Some of This Division Code is Optional. Data Division Changes. Scope Terminators. IN-LINE PERFORMS. READ Statement. The INITIALIZE Statement. EVALUATE Statement. STRING Statement. UNSTRING STATEMENT. Reference Modification. MOVE CORRESPONDING (Duplicate Data Names). Table Manipulation with IN-LINE PERFORM. Relative Subscripting. Zero Out the Table. Perform a Number of Times. Using the FILLER Clause. Conclusion.Index.