2010-2011_CST8283_sanschm_3330_22-mar

advertisement
Week Hours Description
1
3
Course Introduction
The Nature of COBOL
Review of Programming Principles
Structure of COBOL Programs
COBOL Words and Names
2
1
Lab – Lab Orientation
3
Declaring data items – level numbers and the PICTURE
clause
Reference
Chapters 1, 2
Chapter 1
Chapter 5
Overview of the PROCEDURE DIVISION
- simple interactive program using: ACCEPT,
DISPLAY, ADD, MOVE, STOP RUN, PERFORM
...UNTIL
1
COBOL Coding Form
Editing, compiling, running a COBOL program
Syntax and logic errors
Lab – Compile and execute a supplied COBOL program
3
4
3
Modularization and Structure Charts
Flowcharts and pseudocode (review)
Standards and Style
Chapter 3
IDENTIFICATION, ENVIRONMENT Divisions
File control entry – the SELECT statement
Chapter 4
1
Lab – Simple interactive COBOL program
3
DATA DIVISION/FILE Section
- FD entry
Creating a sequential file
- Record layout
- OPEN, CLOSE, WRITE
WORKING STORAGE Section
Assignment # 1: Program to generate a sequential
data file
1
Lab – Modularization exercise
Chapter 4
5
6
3
Accessing data from files
Detecting end-of-file, priming READ
READ...AT END
Chapter 5
1
Lab – Program to read and display data from a file
3
Report Layout - Printer Spacing Chart
Generating a simple report
WRITE...AFTER ADVANCING
Chapter 9
Output field editing
- actual decimal point
- negative numbers, embedded sign, +/-/CR/DB
- zero suppression, blank and ‘*’
- insertion characters – period, comma
- $ B(blank) / (slash)
Chapter 7
Assignment # 2A: Program to generate a single page
report
1
Lab – Modify program to include editing
7
8
3
Arithmetic Operations
- Truncation, rounding, ON SIZE ERROR
- ADD, SUBTRACT, MULTIPLY, DIVIDE statements
- COMPUTE statement, precedence and parentheses
1
Lab – Write/modify programs to using arithmetic
statements
3
Conditional statements
- IF...ELSE...END-IF
- EVALUATE
Chapter 5
Chapter 5
Multi-page Report, Page and Column Headings
Chapter 9
Record descriptions in WORKING-STORAGE, variable
line spacing, WRITE...FROM
Mid-Term Test
Assignment # 2B: Add multi-page processing to
Assignment 2A program
1
Lab – Catch-up
9
3
More PROCEDURE DIVISION statements:
Chapter 9
- obtaining the system date
- INITIALIZE statement
- string processing statements
Subprograms
COPY statement
Chapter 16
Debugging techniques
10
11
1
Lab – Sub-programs
3
Conditional Operations
- relational conditions, class test, sign test
- compound conditions – AND, OR, NOT
- nested IF, linear/non-linear IF statements
- CONTINUE, NEXT SENTENCE
- implied subjects and operators
- condition names, using SET
1
Lab – Conditional statements
3
TABLES
Principles of Tables
Defining a table, OCCURS, REDEFINES, hard-coded
values
Tables with two columns (group item:
argument/function)
Searching a table using PERFORM/VARYING
1
Chapter 8
Chapter 11
Lab – Table exercise
12
3
TABLES (continued)
Input-loaded tables
SEARCH/SEARCH ALL
Chapter 12
Assignment # 3: Program with table processing and
indexed file updating
1
Lab - Loading a table from disk
13
3
Indexed files (concepts)
File control entry
OPEN statement, READ statement for random access
Maintaining an indexed file
WRITE, REWRITE, DELETE statements for indexed
Chapter 18
files
1
Lab – Reading an indexed file randomly
14
15
3
START statement, alternate keys, dynamic access
1
Lab – Dynamic access
4
Final Evaluation
Chapter 18
Download