SlideShare a Scribd company logo
All Around COBOL
By
V. Kishore Kumar M.C.A.
Mainframe Developer
Cognizant, Chennai.
Is there Still market for COBOL
skills/developers?
• COBOL is dead right?
• All the IT developer jobs now are in modern
languages like C++, .Net & Java right?
Survey Report @ 2009
• 70-75% of the business and transaction
systems around the world run on COBOL. This
includes credit card systems, ATMs, ticket
purchasing, retail/POS systems, banking,
payroll systems, telephone/cell calls, grocery
stores, hospital systems, government systems,
airline systems, insurance systems,
automotive systems, traffic signal systems.
Survey Report @ 2009
• 90% of global financial transactions are
processed in COBOL.
• The language supports over 30 billion
transactions per day.
• There are 1.5-2 million developers, globally,
working with COBOL code.
• There are around 200 billion lines of COBOL
code in use.
Survey Report @ 2009
• Around 5 billion lines of new COBOL code are
added to live systems every year.
• The investment made into COBOL systems
over the past 50 years is said to be worth
about $2 trillion dollars.
COBOL
• COmmon Business Oriented Language – 1959.
• High Level Structured Language.
• Can be used with database like VSAM, DB2 or
IDMS.
• Can handle huge volumes of data.
• COBOL applications can be easily maintained.
Program Structure
Program Structure
• Division is a block of code, usually containing
one or more sections.
– It starts where the division name is encountered.
– It ends with the beginning of the next division.
• A COBOL program has 4 divisions.
Identification Division Environment Division
Data Division Procedure Division
The COBOL Divisions
• Identification Division :
– Names the program.
– Optionally, documents the date the program was
written.
– The compilation date and
– Other pertinent information.
Identification Division
• Environment Division :
– Machine Dependent details such as computer
used and peripheral devices.
– Consists of 2 sections
• The Configuration Section
• The Input-Output Section
Environment Division
• Input-Output Section:
– Primarily used to code the FILE-CONTROL
paragraph.
– Associate the files to be used in program with
specific I/O devices.
Environment Division
• All the data used by the program is defined.
• It is divided into 5 sections
– File Section
– Working-storage Section
– Linkage Section
– Report Section and
– Communication Section
Data Division
• File Section :
– Defines all the files that will be used in the
program.
– There will be one File Descriptor(FD) for each file
followed by a record description for each record
format.
Data Division
• Working-Storage Section:
– Used to define any data that will be used in
program but not a part of file.
• Linkage Section:
– Used in a subprogram that will be passed as
arguments to the routine.
Data Division
• Consists of a series of procedures called
paragraphs, each designed to perform a
specific function.
• All statements are terminated by a period(.).
Procedure Division
Sample COBOL Program Layout
COBOL Program Layout
COBOL Program Layout
Picture Clause
• Used to specify the type and size of an
elementary data item.
Data Items – Level Numbers
• Levels 01-49 are used to create hierarchical
data items.
• The highest level item in the hierarchy will
always be the 01 item.
• Items which contains other items are called
Group Items.
• Items which don’t contain other data items
are called Elementary Items.
Data Items – Level Numbers
COBOL Statements
• Display
• Accept
• Exit, STOP
• MOVE
• PERFORM
• Arithmetic Statements
DISPLAY Statement
• Exhibit data upon the primary output device.
ACCEPT Statement
• Acquire data from the primary input device or
various system fields.
EXIT & STOP Statement
• Used to exit routines or
programs.
• EXIT Program must be
used only in a called
Sub-Program.
• Used to STOP programs.
• STOP RUN Terminates
the program.
MOVE Statement
• Used to copy data items to other data items.
PERFORM Statement
• Used to execute the code.
PERFORM Statement
• Code can be executed in another area of the
program and is invoked by mentioning a
procedure or paragraph name.
• Inline Perform, code is executed inside the
perform statement.
Arithmetic Statements
• ADD
• SUBTRACT
• MULTIPLY
• DIVIDE
• COMPUTE
ADD
SUBTRACT
MULTIPLY
DIVIDE
DIVIDE
COMPUTE
All around cobol

More Related Content

PDF
Bca cobol
PPT
Cobol basics 19-6-2010
PDF
A beginner's guide to cobol programming
PPTX
COBOL
DOC
COBOL FOR FRESHER
PPTX
Skillwise - Cobol Programming Basics
PPTX
Cobol programming language
Bca cobol
Cobol basics 19-6-2010
A beginner's guide to cobol programming
COBOL
COBOL FOR FRESHER
Skillwise - Cobol Programming Basics
Cobol programming language

What's hot (19)

PDF
Cobol簡介
PPSX
Cobol training class-1
PPT
Assembler Language Tutorial for Mainframe Programmers
PPT
Chapter One
DOCX
Compiler Design Material
PPT
what is compiler and five phases of compiler
PPT
Compiler Design
PPTX
Lecture 1 introduction to language processors
PPTX
Language processors
PPTX
Compiler construction tools
PPT
Unit 2 ppt
PDF
Language processors
DOC
Compiler Design(NANTHU NOTES)
PPTX
Compiler Engineering Lab#1
PDF
Compiler Construction | Lecture 1 | What is a compiler?
PPT
Overview of Language Processor : Fundamentals of LP , Symbol Table , Data Str...
PPT
Principles of compiler design
PDF
Compiler unit 1
PPTX
Introduction to Compilers
Cobol簡介
Cobol training class-1
Assembler Language Tutorial for Mainframe Programmers
Chapter One
Compiler Design Material
what is compiler and five phases of compiler
Compiler Design
Lecture 1 introduction to language processors
Language processors
Compiler construction tools
Unit 2 ppt
Language processors
Compiler Design(NANTHU NOTES)
Compiler Engineering Lab#1
Compiler Construction | Lecture 1 | What is a compiler?
Overview of Language Processor : Fundamentals of LP , Symbol Table , Data Str...
Principles of compiler design
Compiler unit 1
Introduction to Compilers
Ad

Similar to All around cobol (20)

PPT
Chapter 1
PPT
COBOL Foundation 1
PPTX
DAY-01-INTRO-DATA DIV-ACCEPT-DISPLAY.pptx
PPSX
Cobol training class-1
PDF
COBOL_Programming_Fundamental or dummies.pdf
PPT
Chapter 2
PDF
Why COBOL is Still Relevant Today - cobol programmer.pdf
PDF
Mainframe refresher-part-1
PDF
Cobol training
PPTX
Clean COBOL Lightning Talk - Ox:Agile 2019
PPT
COBOL1.ppt
PPT
Introduction to COBOL Programming Language
PDF
Open cobol programmers guide
PDF
Open cobol 1.1-06feb2009-programmers-guide
PPT
COBOL Foundation 2
PDF
Looking into COBOL and Being Serious About it
PPTX
COBOL and Computer Science
PDF
A Checklist for Migrating Big Iron Cobol Applications
ODP
Cobolbasics
Chapter 1
COBOL Foundation 1
DAY-01-INTRO-DATA DIV-ACCEPT-DISPLAY.pptx
Cobol training class-1
COBOL_Programming_Fundamental or dummies.pdf
Chapter 2
Why COBOL is Still Relevant Today - cobol programmer.pdf
Mainframe refresher-part-1
Cobol training
Clean COBOL Lightning Talk - Ox:Agile 2019
COBOL1.ppt
Introduction to COBOL Programming Language
Open cobol programmers guide
Open cobol 1.1-06feb2009-programmers-guide
COBOL Foundation 2
Looking into COBOL and Being Serious About it
COBOL and Computer Science
A Checklist for Migrating Big Iron Cobol Applications
Cobolbasics
Ad

Recently uploaded (20)

PPTX
Tartificialntelligence_presentation.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
project resource management chapter-09.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Mushroom cultivation and it's methods.pdf
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Enhancing emotion recognition model for a student engagement use case through...
Tartificialntelligence_presentation.pptx
Heart disease approach using modified random forest and particle swarm optimi...
SOPHOS-XG Firewall Administrator PPT.pptx
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
OMC Textile Division Presentation 2021.pptx
Programs and apps: productivity, graphics, security and other tools
A comparative study of natural language inference in Swahili using monolingua...
project resource management chapter-09.pdf
1. Introduction to Computer Programming.pptx
Assigned Numbers - 2025 - Bluetooth® Document
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Web App vs Mobile App What Should You Build First.pdf
WOOl fibre morphology and structure.pdf for textiles
1 - Historical Antecedents, Social Consideration.pdf
Mushroom cultivation and it's methods.pdf
A novel scalable deep ensemble learning framework for big data classification...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Getting Started with Data Integration: FME Form 101
Chapter 5: Probability Theory and Statistics
Enhancing emotion recognition model for a student engagement use case through...

All around cobol

  • 1. All Around COBOL By V. Kishore Kumar M.C.A. Mainframe Developer Cognizant, Chennai.
  • 2. Is there Still market for COBOL skills/developers? • COBOL is dead right? • All the IT developer jobs now are in modern languages like C++, .Net & Java right?
  • 3. Survey Report @ 2009 • 70-75% of the business and transaction systems around the world run on COBOL. This includes credit card systems, ATMs, ticket purchasing, retail/POS systems, banking, payroll systems, telephone/cell calls, grocery stores, hospital systems, government systems, airline systems, insurance systems, automotive systems, traffic signal systems.
  • 4. Survey Report @ 2009 • 90% of global financial transactions are processed in COBOL. • The language supports over 30 billion transactions per day. • There are 1.5-2 million developers, globally, working with COBOL code. • There are around 200 billion lines of COBOL code in use.
  • 5. Survey Report @ 2009 • Around 5 billion lines of new COBOL code are added to live systems every year. • The investment made into COBOL systems over the past 50 years is said to be worth about $2 trillion dollars.
  • 6. COBOL • COmmon Business Oriented Language – 1959. • High Level Structured Language. • Can be used with database like VSAM, DB2 or IDMS. • Can handle huge volumes of data. • COBOL applications can be easily maintained.
  • 8. Program Structure • Division is a block of code, usually containing one or more sections. – It starts where the division name is encountered. – It ends with the beginning of the next division. • A COBOL program has 4 divisions. Identification Division Environment Division Data Division Procedure Division
  • 9. The COBOL Divisions • Identification Division : – Names the program. – Optionally, documents the date the program was written. – The compilation date and – Other pertinent information.
  • 11. • Environment Division : – Machine Dependent details such as computer used and peripheral devices. – Consists of 2 sections • The Configuration Section • The Input-Output Section Environment Division
  • 12. • Input-Output Section: – Primarily used to code the FILE-CONTROL paragraph. – Associate the files to be used in program with specific I/O devices. Environment Division
  • 13. • All the data used by the program is defined. • It is divided into 5 sections – File Section – Working-storage Section – Linkage Section – Report Section and – Communication Section Data Division
  • 14. • File Section : – Defines all the files that will be used in the program. – There will be one File Descriptor(FD) for each file followed by a record description for each record format. Data Division
  • 15. • Working-Storage Section: – Used to define any data that will be used in program but not a part of file. • Linkage Section: – Used in a subprogram that will be passed as arguments to the routine. Data Division
  • 16. • Consists of a series of procedures called paragraphs, each designed to perform a specific function. • All statements are terminated by a period(.). Procedure Division
  • 20. Picture Clause • Used to specify the type and size of an elementary data item.
  • 21. Data Items – Level Numbers • Levels 01-49 are used to create hierarchical data items. • The highest level item in the hierarchy will always be the 01 item. • Items which contains other items are called Group Items. • Items which don’t contain other data items are called Elementary Items.
  • 22. Data Items – Level Numbers
  • 23. COBOL Statements • Display • Accept • Exit, STOP • MOVE • PERFORM • Arithmetic Statements
  • 24. DISPLAY Statement • Exhibit data upon the primary output device.
  • 25. ACCEPT Statement • Acquire data from the primary input device or various system fields.
  • 26. EXIT & STOP Statement • Used to exit routines or programs. • EXIT Program must be used only in a called Sub-Program. • Used to STOP programs. • STOP RUN Terminates the program.
  • 27. MOVE Statement • Used to copy data items to other data items.
  • 28. PERFORM Statement • Used to execute the code.
  • 29. PERFORM Statement • Code can be executed in another area of the program and is invoked by mentioning a procedure or paragraph name. • Inline Perform, code is executed inside the perform statement.
  • 30. Arithmetic Statements • ADD • SUBTRACT • MULTIPLY • DIVIDE • COMPUTE