1. Home
  2. /
  3. Cobol-variants
  4. /
  5. IBM COBOL Simple Report

IBM COBOL Simple Report - Cobol-variants Typing CST Test

Loading…

IBM COBOL Simple Report — Cobol-variants Code

Prints a simple customer report with ID and name.

IDENTIFICATION DIVISION.
PROGRAM-ID. CUSTOMER-REPORT.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 CUSTOMER-ID      PIC 9(5) VALUE 10001.
01 CUSTOMER-NAME    PIC A(20) VALUE 'John Smith'.
PROCEDURE DIVISION.
DISPLAY 'Customer ID: ' CUSTOMER-ID.
DISPLAY 'Customer Name: ' CUSTOMER-NAME.
STOP RUN.

Cobol-variants Language Guide

COBOL Variants refer to the different dialects and implementations of COBOL (Common Business-Oriented Language), a legacy programming language widely used in business, finance, and administrative systems.

Primary Use Cases

  • ▸Processing batch payroll and accounting tasks
  • ▸Maintaining enterprise resource planning (ERP) systems
  • ▸Handling large-scale transaction processing
  • ▸Integrating with mainframe databases like DB2 or IMS
  • ▸Reporting and regulatory compliance in finance

Notable Features

  • ▸Readable English-like syntax
  • ▸Structured programming constructs (PERFORM, IF, EVALUATE)
  • ▸File handling and batch processing capabilities
  • ▸Database integration via embedded SQL
  • ▸Object-oriented features in modern COBOL (OO-COBOL)

Origin & Creator

Developed in 1959 by a consortium including CODASYL and led by Grace Hopper to provide a standardized business programming language.

Industrial Note

Extensively used in banking, insurance, government payroll systems, and mainframe applications where decades-old COBOL systems still operate mission-critical workloads.

More Cobol-variants Typing Exercises

Micro Focus COBOL File ProcessingCOBOL Calculation ExampleCOBOL IF-ELSE ExampleCOBOL PERFORM Loop ExampleCOBOL String ConcatenationCOBOL Table ProcessingCOBOL File Write ExampleCOBOL REDEFINES ExampleCOBOL MOVE CORRESPONDING Example

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher