SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Skillwise - Cobol Programming Basics
Skillwise - Cobol Programming BasicsSkillwise - Cobol Programming Basics
Skillwise - Cobol Programming BasicsSkillwise Group
 
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
 
JCL FOR FRESHERS
JCL FOR FRESHERSJCL FOR FRESHERS
JCL FOR FRESHERSNirmal Pati
 
Language processors
Language processorsLanguage processors
Language processorsYash Bansal
 
Chapter One
Chapter OneChapter One
Chapter Onebolovv
 
Principles of compiler design
Principles of compiler designPrinciples of compiler design
Principles of compiler designJanani Parthiban
 
basics of compiler design
basics of compiler designbasics of compiler design
basics of compiler designPreeti Katiyar
 
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingPhases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingMukesh Tekwani
 
what is compiler and five phases of compiler
what is compiler and five phases of compilerwhat is compiler and five phases of compiler
what is compiler and five phases of compileradilmehmood93
 
Fundamentals of Language Processing
Fundamentals of Language ProcessingFundamentals of Language Processing
Fundamentals of Language ProcessingHemant Sharma
 
Compiler Construction Course - Introduction
Compiler Construction Course - IntroductionCompiler Construction Course - Introduction
Compiler Construction Course - IntroductionMuhammad Sanaullah
 
Introduction to compiler
Introduction to compilerIntroduction to compiler
Introduction to compilerAbha Damani
 

Mais procurados (20)

All around cobol
All around cobolAll around cobol
All around cobol
 
Skillwise - Cobol Programming Basics
Skillwise - Cobol Programming BasicsSkillwise - Cobol Programming Basics
Skillwise - Cobol Programming Basics
 
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
 
JCL FOR FRESHERS
JCL FOR FRESHERSJCL FOR FRESHERS
JCL FOR FRESHERS
 
Language processors
Language processorsLanguage processors
Language processors
 
Language processors
Language processorsLanguage processors
Language processors
 
Compiler
CompilerCompiler
Compiler
 
Chapter One
Chapter OneChapter One
Chapter One
 
Cobol簡介
Cobol簡介Cobol簡介
Cobol簡介
 
Presentation compiler design
Presentation compiler designPresentation compiler design
Presentation compiler design
 
Principles of compiler design
Principles of compiler designPrinciples of compiler design
Principles of compiler design
 
basics of compiler design
basics of compiler designbasics of compiler design
basics of compiler design
 
Lec 1 intro
Lec 1 introLec 1 intro
Lec 1 intro
 
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingPhases of the Compiler - Systems Programming
Phases of the Compiler - Systems Programming
 
C programming
C programmingC programming
C programming
 
what is compiler and five phases of compiler
what is compiler and five phases of compilerwhat is compiler and five phases of compiler
what is compiler and five phases of compiler
 
Assembler
AssemblerAssembler
Assembler
 
Fundamentals of Language Processing
Fundamentals of Language ProcessingFundamentals of Language Processing
Fundamentals of Language Processing
 
Compiler Construction Course - Introduction
Compiler Construction Course - IntroductionCompiler Construction Course - Introduction
Compiler Construction Course - Introduction
 
Introduction to compiler
Introduction to compilerIntroduction to compiler
Introduction to compiler
 

Destaque

Top 9 vsam interview questions answers
Top 9 vsam interview questions answersTop 9 vsam interview questions answers
Top 9 vsam interview questions answersjonhmart036
 
Vsam presentation PPT
Vsam presentation PPTVsam presentation PPT
Vsam presentation PPTAnil Polsani
 
Db2 Important questions to read
Db2 Important questions to readDb2 Important questions to read
Db2 Important questions to readPrasanth Dusi
 
IBM Cobol Programming
IBM Cobol ProgrammingIBM Cobol Programming
IBM Cobol ProgrammingRui Andrade
 
Vsam interview questions and answers.
Vsam interview questions and answers.Vsam interview questions and answers.
Vsam interview questions and answers.Sweta Singh
 
Cobol questions and answers
Cobol questions and answersCobol questions and answers
Cobol questions and answersSweta Singh
 
Ibm db2 interview questions and answers
Ibm db2 interview questions and answersIbm db2 interview questions and answers
Ibm db2 interview questions and answersSweta Singh
 
20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview QuestionsSrinimf-Slides
 

Destaque (8)

Top 9 vsam interview questions answers
Top 9 vsam interview questions answersTop 9 vsam interview questions answers
Top 9 vsam interview questions answers
 
Vsam presentation PPT
Vsam presentation PPTVsam presentation PPT
Vsam presentation PPT
 
Db2 Important questions to read
Db2 Important questions to readDb2 Important questions to read
Db2 Important questions to read
 
IBM Cobol Programming
IBM Cobol ProgrammingIBM Cobol Programming
IBM Cobol Programming
 
Vsam interview questions and answers.
Vsam interview questions and answers.Vsam interview questions and answers.
Vsam interview questions and answers.
 
Cobol questions and answers
Cobol questions and answersCobol questions and answers
Cobol questions and answers
 
Ibm db2 interview questions and answers
Ibm db2 interview questions and answersIbm db2 interview questions and answers
Ibm db2 interview questions and answers
 
20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions
 

Semelhante a Cobol training class-1

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
 
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
 
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptx
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptxChapter vvxxxxxxxxxxx1 - Part 1 (3).pptx
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptxrajinevitable05
 
C Programming language - introduction
C Programming  language - introduction  C Programming  language - introduction
C Programming language - introduction GopikaS12
 
Ch 1.pptx
Ch 1.pptxCh 1.pptx
Ch 1.pptxwoldu2
 

Semelhante a Cobol training class-1 (20)

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
 
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
 
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptx
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptxChapter vvxxxxxxxxxxx1 - Part 1 (3).pptx
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptx
 
C Programming language - introduction
C Programming  language - introduction  C Programming  language - introduction
C Programming language - introduction
 
Ch 1.pptx
Ch 1.pptxCh 1.pptx
Ch 1.pptx
 
Debug tool
Debug toolDebug tool
Debug tool
 

Último

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
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
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
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
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
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
 
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
 

Último (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
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...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
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
 
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
 

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.