SlideShare une entreprise Scribd logo
1  sur  11
IBM-Mainframes
COBOL Class-1
Background and History
 COBOL is an acronym for:
Common Business Oriented Language
 COBOL was developed in 1959 by the Conference on Data
Systems Languages (CODASYL).
 COBOL was designed to solve business problems
 COBOL was designed to be English-like, so that the reader, even
a non-programmer, could get an idea of what was going on in the
program, simply by reading the code.
 COBOL was designed to be portable, so that programs could be
adapted from one computer system to run on another, simply by
making a few changes in one isolated section of the code.
Background and History Contd..
 Since 1960, the American National Standards Institute
(ANSI) was responsible for developing new COBOL
standards.
 Three ANSI standards for COBOL have been
produced:
 in 1968, 1974 and 1985 (currently Using ).
 Object-oriented COBOL is the fourth edition in the
continuing evolution of ANSI/ISO standard COBOL.
Structure of COBOL Program
 The organization of a COBOL program is hierarchical. It's not
necessarily required for all of components to be present for the
hierarchical relationship to exist
.. Program
.. Division
.. Section
.. Paragraph
.. Sentence
.. Statement
.. Clause / Phrase / VERBS
.. Word (.. Character)
COBOL Program Organization (Division)
 We have four divisions in every COBOL program
IDENTIFICATION, ENVIRONMENT,DATA, and PROCEDURE.
 IDENTIFICATION DIVISION The first division of COBOL program;
used for documentation purposes.
 PROGRAM-ID is used to name the program. This is the only
paragraph that is required in the ID DIVISION.
 AUTHOR used to code the programmer's name
 INSTALLATION used to code the programmer's employer's name
 DATE-WRITTEN & DATE-COMPILED used to code the date the
program was written & compiled
 SECURITY used to code the security level of the program
Division’s Contd..
 ENVIRONMENT DIVISION Provides information on the equipment
and file used with the program and only division that may be machine-
dependent.
 Two sections: CONFIGURATION and INPUT-OUTPUT Section
 CONFIGURATION SECTION optional section is used to specify the
type of computer equipment
SOURCE-COMPUTER used to compile the program.
OBJECT-COMPUTER used to execute the program.
INPUT-OUTPUT SECTION used to specify input/output files used in
the program.
FILE-CONTROL used to associate the files to be used in the
program with specific I/O devices.
Division’s Contd..
 DATA DIVISION : Defines and describes all the data to be used in a
program/To declare variables.
 Sections: FILE, WORKING-STORAGE, LINKAGE, REPORT, and
COMMUNICATION SECTIONS
 FILE SECTION is used to define the files record layout that will be used
in the program.
 WORKING-STORAGE is used to define any data that will be used in
the program that is not part of a file section.
 LINKAGE SECTION is used in a subprogram to define data that will be
passed as arguments to the routine.
 REPORT SECTION can be used to produce standard control break driven
reports. COMMUNICATION SECTION is used for communicating
between two programs running simultaneously on a computer
Division’s Contd..
 PROCEDURE DIVISION This contains the instruction to be
executed in the program
 This division consists of a series of procedures called
paragraphs, each designed to perform a specific function.
 Paragraph Consists of a paragraph name and a series of
procedural statements designed to perform a desired function .
 Statement : An instruction.
 Sentence : A statement or series of statement ending with a
period (.)
 STOP RUN : Specifies end of the program.
COBOL Layout/COBOL Code Sheet (1 - 80)
1. 1-6 Sequence Number This area was originally designed for
entering line numbers on each individual line of code.
2. 7 Comments /Continuation This area is used to designate a
line as either a comment or a continuation for previous line code.
• * This line is a comment.
• - This line is a continuation of the previous line.
3. 8-11 Area A This area is used to enter division headers, section
headers, paragraph names, file indicators and level 01 items.
4. 12-72 Area B This area is used to enter any statement that
doesn't go in Area A.
5. 73-80 Program Identification This area has been used by
programmers as a way to mark individual lines of code,
My First COBOL Program
 Hello world! Program
IDENTIFICATION DIVISION. ( ID DIVISION )
PROGRAM-ID. HELLOPGM. -  Max 8 character
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCRDURE DIVISION.
DISPLAY ‘HELLO WORLD!’.
STOP RUN.
This Program gives HELLO WORLD! As Output.
Thank You

Contenu connexe

Tendances

Estimating Software Maintenance Costs
Estimating Software Maintenance CostsEstimating Software Maintenance Costs
Estimating Software Maintenance Costslalithambiga kamaraj
 
6 basic steps of software development process
6 basic steps of software development process6 basic steps of software development process
6 basic steps of software development processRiant Soft
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OSanilinvns
 
C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)indrasir
 
Shell and its types in LINUX
Shell and its types in LINUXShell and its types in LINUX
Shell and its types in LINUXSHUBHA CHATURVEDI
 
COBOL FOR FRESHER
COBOL FOR FRESHERCOBOL FOR FRESHER
COBOL FOR FRESHERNirmal Pati
 
Conectar una impresora en red
Conectar una impresora en redConectar una impresora en red
Conectar una impresora en redAna Montesinos
 
Generic Software Process Models
Generic Software Process ModelsGeneric Software Process Models
Generic Software Process ModelsEducation Front
 
Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...Tayeen Ahmed
 
obiee 12c installation guidelines
obiee 12c installation guidelinesobiee 12c installation guidelines
obiee 12c installation guidelineskumud thakur
 
Advanced c programming in Linux
Advanced c programming in Linux Advanced c programming in Linux
Advanced c programming in Linux Mohammad Golyani
 
Operating system &utility program
Operating system &utility programOperating system &utility program
Operating system &utility programDhani Ahmad
 

Tendances (20)

Estimating Software Maintenance Costs
Estimating Software Maintenance CostsEstimating Software Maintenance Costs
Estimating Software Maintenance Costs
 
Unit 3 sp assembler
Unit 3 sp assemblerUnit 3 sp assembler
Unit 3 sp assembler
 
6 basic steps of software development process
6 basic steps of software development process6 basic steps of software development process
6 basic steps of software development process
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
 
COCOMO model
COCOMO modelCOCOMO model
COCOMO model
 
Pascal programming lecture notes
Pascal programming lecture notesPascal programming lecture notes
Pascal programming lecture notes
 
C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)
 
Linking in MS-Dos System
Linking in MS-Dos SystemLinking in MS-Dos System
Linking in MS-Dos System
 
Shell and its types in LINUX
Shell and its types in LINUXShell and its types in LINUX
Shell and its types in LINUX
 
Chapter 2 c#
Chapter 2 c#Chapter 2 c#
Chapter 2 c#
 
COBOL FOR FRESHER
COBOL FOR FRESHERCOBOL FOR FRESHER
COBOL FOR FRESHER
 
Conectar una impresora en red
Conectar una impresora en redConectar una impresora en red
Conectar una impresora en red
 
Generic Software Process Models
Generic Software Process ModelsGeneric Software Process Models
Generic Software Process Models
 
Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
 
Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...
 
obiee 12c installation guidelines
obiee 12c installation guidelinesobiee 12c installation guidelines
obiee 12c installation guidelines
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
 
software design
software designsoftware design
software design
 
Advanced c programming in Linux
Advanced c programming in Linux Advanced c programming in Linux
Advanced c programming in Linux
 
Operating system &utility program
Operating system &utility programOperating system &utility program
Operating system &utility program
 

En vedette

Problem Determination Tools
Problem Determination ToolsProblem Determination Tools
Problem Determination ToolsCICS ROADSHOW
 
IBM Cobol Programming
IBM Cobol ProgrammingIBM Cobol Programming
IBM Cobol ProgrammingRui Andrade
 
Cobol performance tuning paper lessons learned - s8833 tr
Cobol performance tuning paper   lessons learned - s8833 trCobol performance tuning paper   lessons learned - s8833 tr
Cobol performance tuning paper lessons learned - s8833 trPedro Barros
 
1004 z2 env_positioned
1004 z2 env_positioned1004 z2 env_positioned
1004 z2 env_positionedHenning Blohm
 
O novo IBM COBOL ENTERPRISE V5/V6 para zOS e o IBM ABO
O novo IBM COBOL ENTERPRISE V5/V6 para zOS e o IBM ABOO novo IBM COBOL ENTERPRISE V5/V6 para zOS e o IBM ABO
O novo IBM COBOL ENTERPRISE V5/V6 para zOS e o IBM ABOPaulo Batuta
 
Licenze... cpoyright, copyleft e pubblico dominio
Licenze... cpoyright, copyleft e pubblico dominioLicenze... cpoyright, copyleft e pubblico dominio
Licenze... cpoyright, copyleft e pubblico dominioAnna Mancuso
 
Elevating Application Performance with the latest IBM COBOL offerings
Elevating Application Performance with the latest IBM COBOL offeringsElevating Application Performance with the latest IBM COBOL offerings
Elevating Application Performance with the latest IBM COBOL offeringsDevOps for Enterprise Systems
 
1006 Z2 Intro Complete
1006 Z2 Intro Complete1006 Z2 Intro Complete
1006 Z2 Intro CompleteHenning Blohm
 
Converting to the latest COBOL Compiler made simple with the right tools
Converting to the latest COBOL Compiler made simple with the right toolsConverting to the latest COBOL Compiler made simple with the right tools
Converting to the latest COBOL Compiler made simple with the right toolsDevOps for Enterprise Systems
 

En vedette (12)

Automatic Performance Improvement for Legacy COBOL
Automatic Performance Improvement for Legacy COBOLAutomatic Performance Improvement for Legacy COBOL
Automatic Performance Improvement for Legacy COBOL
 
Problem Determination Tools
Problem Determination ToolsProblem Determination Tools
Problem Determination Tools
 
myslide1
myslide1myslide1
myslide1
 
IBM Cobol Programming
IBM Cobol ProgrammingIBM Cobol Programming
IBM Cobol Programming
 
Cobol performance tuning paper lessons learned - s8833 tr
Cobol performance tuning paper   lessons learned - s8833 trCobol performance tuning paper   lessons learned - s8833 tr
Cobol performance tuning paper lessons learned - s8833 tr
 
1004 z2 env_positioned
1004 z2 env_positioned1004 z2 env_positioned
1004 z2 env_positioned
 
O novo IBM COBOL ENTERPRISE V5/V6 para zOS e o IBM ABO
O novo IBM COBOL ENTERPRISE V5/V6 para zOS e o IBM ABOO novo IBM COBOL ENTERPRISE V5/V6 para zOS e o IBM ABO
O novo IBM COBOL ENTERPRISE V5/V6 para zOS e o IBM ABO
 
Licenze... cpoyright, copyleft e pubblico dominio
Licenze... cpoyright, copyleft e pubblico dominioLicenze... cpoyright, copyleft e pubblico dominio
Licenze... cpoyright, copyleft e pubblico dominio
 
Elevating Application Performance with the latest IBM COBOL offerings
Elevating Application Performance with the latest IBM COBOL offeringsElevating Application Performance with the latest IBM COBOL offerings
Elevating Application Performance with the latest IBM COBOL offerings
 
1006 Z2 Intro Complete
1006 Z2 Intro Complete1006 Z2 Intro Complete
1006 Z2 Intro Complete
 
Converting to the latest COBOL Compiler made simple with the right tools
Converting to the latest COBOL Compiler made simple with the right toolsConverting to the latest COBOL Compiler made simple with the right tools
Converting to the latest COBOL Compiler made simple with the right tools
 
Cobol
CobolCobol
Cobol
 

Similaire à Cobol training class-1

Skillwise - Cobol Programming Basics
Skillwise - Cobol Programming BasicsSkillwise - Cobol Programming Basics
Skillwise - Cobol Programming BasicsSkillwise Group
 
A Checklist for Migrating Big Iron Cobol Applications
A Checklist for Migrating Big Iron Cobol ApplicationsA Checklist for Migrating Big Iron Cobol Applications
A Checklist for Migrating Big Iron Cobol ApplicationsCognizant
 
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdfINTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdfSubramanyambharathis
 
C Programming UNIT 1.pptx
C Programming  UNIT 1.pptxC Programming  UNIT 1.pptx
C Programming UNIT 1.pptxMugilvannan11
 
Introduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic conceptsIntroduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic conceptsssuserf86fba
 
CS8251_QB_answers.pdf
CS8251_QB_answers.pdfCS8251_QB_answers.pdf
CS8251_QB_answers.pdfvino108206
 
presentation on the topic: Introduction to the C language
presentation on the topic: Introduction to the C languagepresentation on the topic: Introduction to the C language
presentation on the topic: Introduction to the C languageGautamGupta136
 
Chapter 1 - Basic concepts of programming.pdf
Chapter 1 - Basic concepts of programming.pdfChapter 1 - Basic concepts of programming.pdf
Chapter 1 - Basic concepts of programming.pdfKirubelWondwoson1
 
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTTC programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTTBatra Centre
 
Lec 01 basic concepts
Lec 01 basic conceptsLec 01 basic concepts
Lec 01 basic conceptsAbdul Khan
 

Similaire à Cobol training class-1 (20)

Skillwise - Cobol Programming Basics
Skillwise - Cobol Programming BasicsSkillwise - Cobol Programming Basics
Skillwise - Cobol Programming Basics
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
COBOL Foundation 1
COBOL Foundation 1COBOL Foundation 1
COBOL Foundation 1
 
WEBSITE DEVELOPMENT
WEBSITE DEVELOPMENTWEBSITE DEVELOPMENT
WEBSITE DEVELOPMENT
 
Unit-2.pptx
Unit-2.pptxUnit-2.pptx
Unit-2.pptx
 
A Checklist for Migrating Big Iron Cobol Applications
A Checklist for Migrating Big Iron Cobol ApplicationsA Checklist for Migrating Big Iron Cobol Applications
A Checklist for Migrating Big Iron Cobol Applications
 
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdfINTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
 
C PROGRAMMING p-2.pdf
C PROGRAMMING p-2.pdfC PROGRAMMING p-2.pdf
C PROGRAMMING p-2.pdf
 
C Programming UNIT 1.pptx
C Programming  UNIT 1.pptxC Programming  UNIT 1.pptx
C Programming UNIT 1.pptx
 
Introduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic conceptsIntroduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic concepts
 
Embedded C.pptx
Embedded C.pptxEmbedded C.pptx
Embedded C.pptx
 
C session 1.pptx
C session 1.pptxC session 1.pptx
C session 1.pptx
 
CS8251_QB_answers.pdf
CS8251_QB_answers.pdfCS8251_QB_answers.pdf
CS8251_QB_answers.pdf
 
Cobol簡介
Cobol簡介Cobol簡介
Cobol簡介
 
presentation on the topic: Introduction to the C language
presentation on the topic: Introduction to the C languagepresentation on the topic: Introduction to the C language
presentation on the topic: Introduction to the C language
 
All around cobol
All around cobolAll around cobol
All around cobol
 
Chapter 1 - Basic concepts of programming.pdf
Chapter 1 - Basic concepts of programming.pdfChapter 1 - Basic concepts of programming.pdf
Chapter 1 - Basic concepts of programming.pdf
 
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTTC programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
 
Overview of c
Overview of cOverview of c
Overview of c
 
Lec 01 basic concepts
Lec 01 basic conceptsLec 01 basic concepts
Lec 01 basic concepts
 

Dernier

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

Cobol training class-1

  • 2. Background and History  COBOL is an acronym for: Common Business Oriented Language  COBOL was developed in 1959 by the Conference on Data Systems Languages (CODASYL).  COBOL was designed to solve business problems  COBOL was designed to be English-like, so that the reader, even a non-programmer, could get an idea of what was going on in the program, simply by reading the code.  COBOL was designed to be portable, so that programs could be adapted from one computer system to run on another, simply by making a few changes in one isolated section of the code.
  • 3. Background and History Contd..  Since 1960, the American National Standards Institute (ANSI) was responsible for developing new COBOL standards.  Three ANSI standards for COBOL have been produced:  in 1968, 1974 and 1985 (currently Using ).  Object-oriented COBOL is the fourth edition in the continuing evolution of ANSI/ISO standard COBOL.
  • 4. Structure of COBOL Program  The organization of a COBOL program is hierarchical. It's not necessarily required for all of components to be present for the hierarchical relationship to exist .. Program .. Division .. Section .. Paragraph .. Sentence .. Statement .. Clause / Phrase / VERBS .. Word (.. Character)
  • 5. COBOL Program Organization (Division)  We have four divisions in every COBOL program IDENTIFICATION, ENVIRONMENT,DATA, and PROCEDURE.  IDENTIFICATION DIVISION The first division of COBOL program; used for documentation purposes.  PROGRAM-ID is used to name the program. This is the only paragraph that is required in the ID DIVISION.  AUTHOR used to code the programmer's name  INSTALLATION used to code the programmer's employer's name  DATE-WRITTEN & DATE-COMPILED used to code the date the program was written & compiled  SECURITY used to code the security level of the program
  • 6. Division’s Contd..  ENVIRONMENT DIVISION Provides information on the equipment and file used with the program and only division that may be machine- dependent.  Two sections: CONFIGURATION and INPUT-OUTPUT Section  CONFIGURATION SECTION optional section is used to specify the type of computer equipment SOURCE-COMPUTER used to compile the program. OBJECT-COMPUTER used to execute the program. INPUT-OUTPUT SECTION used to specify input/output files used in the program. FILE-CONTROL used to associate the files to be used in the program with specific I/O devices.
  • 7. Division’s Contd..  DATA DIVISION : Defines and describes all the data to be used in a program/To declare variables.  Sections: FILE, WORKING-STORAGE, LINKAGE, REPORT, and COMMUNICATION SECTIONS  FILE SECTION is used to define the files record layout that will be used in the program.  WORKING-STORAGE is used to define any data that will be used in the program that is not part of a file section.  LINKAGE SECTION is used in a subprogram to define data that will be passed as arguments to the routine.  REPORT SECTION can be used to produce standard control break driven reports. COMMUNICATION SECTION is used for communicating between two programs running simultaneously on a computer
  • 8. Division’s Contd..  PROCEDURE DIVISION This contains the instruction to be executed in the program  This division consists of a series of procedures called paragraphs, each designed to perform a specific function.  Paragraph Consists of a paragraph name and a series of procedural statements designed to perform a desired function .  Statement : An instruction.  Sentence : A statement or series of statement ending with a period (.)  STOP RUN : Specifies end of the program.
  • 9. COBOL Layout/COBOL Code Sheet (1 - 80) 1. 1-6 Sequence Number This area was originally designed for entering line numbers on each individual line of code. 2. 7 Comments /Continuation This area is used to designate a line as either a comment or a continuation for previous line code. • * This line is a comment. • - This line is a continuation of the previous line. 3. 8-11 Area A This area is used to enter division headers, section headers, paragraph names, file indicators and level 01 items. 4. 12-72 Area B This area is used to enter any statement that doesn't go in Area A. 5. 73-80 Program Identification This area has been used by programmers as a way to mark individual lines of code,
  • 10. My First COBOL Program  Hello world! Program IDENTIFICATION DIVISION. ( ID DIVISION ) PROGRAM-ID. HELLOPGM. -  Max 8 character ENVIRONMENT DIVISION. DATA DIVISION. PROCRDURE DIVISION. DISPLAY ‘HELLO WORLD!’. STOP RUN. This Program gives HELLO WORLD! As Output.