CSC1140 Introduction to COBOL by ChanJin Chung

Lecture Notes


Prelude
How do we develop programs?
How do we develop RM/COBOL programs in the lab. at Oakland Center?
How do we develop RM/COBOL programs at home?
The 1st COBOL Programs | hello.cbl | hello1.cbl | accept1.cbl
The four divisions & COBOL coding rules
ID Division
Environment Division
COBOL Data Elements and Rules
Data Division
Procedure Division
Find Errors! | Answer
1-30 Lab. Assignment Answer
Data Division (II)
PROCEDURE DIV.(II): PERFORM for LOOP
PROCEDURE DIV.(III): Condition and IF
PROCEDURE DIV.(IV): PERFORM Example Program
Data Division / Value Clauses
COBOL Language Elements
MOVING DATA I
MOVING DATA II
MOVING DATA III
Characters in PIC clause
Printing $ and Qualification of Data Names
Computing in COBOL
Computing in COBOL II, Rounded Option
FILLER
COMPUTING IN COBOL III
IF
IF (II)
Evaluate
Evaluate (II)
Y2K problem
Beyond Basic Perform (I)
Beyond Basic Perform (II)
Arrays and Tables (I)
Arrays and Tables (II)
Sequential File Processing
Indexed File Processing How to Design Large programs using Hierachy Charts - if you missed 4-10's class, pick up the note from the instructor
Sorting a File - if you missed 4-10's class, pick up the note from the instructor
Call - if you missed 4-10's class, pick up the note from the instructor
A sample program using SCREEN section
Another sample program using SCREEN section
2 Dimensional Arrays
An example of 2D array
Designing COBOL programs


Copyright by ChanJin Chung