Even Numbers Filter - Cobol Typing CST Test
Loading…
Even Numbers Filter — Cobol Code
Displays even numbers from an array.
IDENTIFICATION DIVISION.
PROGRAM-ID. EvenNumbers.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 NUMS.
05 NUM PIC 9(2) OCCURS 10 TIMES VALUE 1 2 3 4 5 6 7 8 9 10.
01 INDEX PIC 9(2) VALUE 1.
PROCEDURE DIVISION.
PERFORM VARYING INDEX FROM 1 BY 1 UNTIL INDEX > 10
IF NUM (INDEX) MOD 2 = 0 THEN
DISPLAY NUM (INDEX)
END-IF
END-PERFORM
STOP RUN.Cobol Language Guide
COBOL (Common Business-Oriented Language) is a high-level, English-like programming language designed for business applications, financial systems, batch processing, and large-scale enterprise data operations. Known for reliability, readability, and long-term stability.
Primary Use Cases
- ▸Banking and financial transaction systems
- ▸Payroll and HR systems
- ▸Insurance policy and claims processing
- ▸Government mainframe workloads
- ▸Batch data processing
- ▸Large-scale enterprise reporting
Notable Features
- ▸English-like syntax for clarity
- ▸Exceptional stability for long-running systems
- ▸Massive legacy ecosystem in enterprises
- ▸Strong support for structured data processing
- ▸Designed for business rules rather than hardware
Origin & Creator
Developed in 1959 by CODASYL (Conference on Data Systems Languages), with major contributions from Grace Hopper and the US Department of Defense.
Industrial Note
COBOL still powers core banking, insurance, payroll, and government systems worldwide - often handling billions of daily transactions in mission-critical environments.