Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Concatenate first name and last name into full name.
IDENTIFICATION DIVISION.
PROGRAM-ID. STRING-CONCAT.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 FIRST-NAME PIC A(10) VALUE 'John'.
01 LAST-NAME PIC A(10) VALUE 'Doe'.
01 FULL-NAME PIC A(20).
PROCEDURE DIVISION.
STRING FIRST-NAME DELIMITED BY SPACE
' ' DELIMITED BY SIZE
LAST-NAME DELIMITED BY SPACE
INTO FULL-NAME.
DISPLAY 'Full Name: ' FULL-NAME.
STOP RUN.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.
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.