6. @reselbob
reselbob@gmail.com
Agenda
● Background
● Getting the IDE
● My First Program
● My Real Program
● COBOL as a Structured Document
● Variable and Data Types
● Hierarchical Data
● Procedural Programming
● Comments, Questions and Answers
10. @reselbob
reselbob@gmail.com
Background
● Common Business Oriented Language
● Designed in 1959
● Compiled, and this matters
● Mostly Mainframes
● Runs over 70% of the world business transactions
● Yes, it is object oriented, classes and interfaces since 2002
19. @reselbob
reselbob@gmail.com
Symbol Description Example Declaration Sample Value
9 A numeric value where each
occurance of 9 represents a
digit
99 or 9(2) 35
a Alphabetic aaa or a(3) “Bob”
x Alphanumeric xxxx or x(4) “R2D2?”
v Implicit decimal* v(3) .175
s Sign s9(2) -76
p Assumed decimal* p9 .6
Data Types