Professional Documents
Culture Documents
Note:
• References to a sub-module are drawn
as boxes with vertical double sides.
• A sub-module flowchart definition starts
with the sub-module name (in a rounded
box) and ends with a Return (also in a
rounded box);
STRUCTURES
• Sequence – steps
• Decision – if then… else or a conditional
WHERE, HOW AND WHY WE USE COBOL
• Loop – repeat tasks
• Case (Selection) – switch case • one of the most important programming
languages in mainframe
• is used in multiple industries like retail, The American National Standards
healthcare, insurance, finance, etc. Institute (ANSI) has since produced
• can run without any changes in modern several revisions of the COBOL standard,
mainframe server including:
• is a procedural language that works well • COBOL-68
in legacy applications • COBOL-74
• COBOL-85
INTRODUCTION OF COBOL • COBOL 2002
COBOL HISTORY
COBOL ADVANTAGES
The development of the language was a
• It is machine independent
project sponsored by the United States
• It is easy to maintain
Department of Defense (DoD) that
• It is easy to understand
included a consortium of computer
• It is self-documenting
companies including IBM, Honeywell,
• It is non-proprietary (portable)
Sperry Rand, and Burroughs; to create a
• COBOL programs are uniquely
programming language with:
organized; four divisions
• portability between computer systems • A COBOL program can handle
• more English-like syntax than other voluminous commercial data processing
languages of the time (e.g., FORTRAN) using only a few statements
• COBOL as defined in the original
HISTORY OF COBOL STANDARDS specification included a PICTURE
clause for detailed field specification
The specifications approved by the full
• COBOL has many reserved words (over
Short Range Committee were approved by
400), called keywords
the Executive Committee on January 3,
1960, and sent to the government printing
office, which edited and printed these FEATURES OF A COBOL PROGRAM
specifications as COBOL 60. A. English-like syntax
B. Unusual length compared with programs - all Statement, Sentence, Verbs,
written in other languages. Clause, Characters, and Words must
C. Column-sensitive organization of the start in Area B.
program. 5. Program Identification Area (Column
D. Spacing between any two-program 73-80)
segments. - the idea of using this area was to
E. Use of indentations. enter the program identification of
each individual lines in the code.