COBOL (Common Business-Oriented Language) is a high-level programming language used primarily for business, finance, and administrative systems. It was developed in the late 1950s and is still in use today in many legacy systems.
This repository contains various resources for learning COBOL, including lectures, examples, and tools.
Hands-on Exercises: Include hands-on exercises and coding challenges in
-
docs/: Contains documentation and lecture notes.
- lectures/: Lecture notes for different topics.
- Lecture 01: Introduction to COBOL
- Lecture 02: COBOL Basics
- Lecture 03: Data Types and Variables
- Lecture 04: Conditional Statements
- Lecture 05: Loops and Iteration
- Lecture 06: Arrays and Tables
- Lecture 07: Subprograms and Functions
- Lecture 08: File Handling in COBOL
- Lecture 09: Error Handling and Debugging
- Lecture 10: Advanced Topics in COBOL
- notes/: Additional notes and references.
- slides/: Presentation slides for lectures.
- lectures/: Lecture notes for different topics.
-
examples/: Contains example COBOL programs.
- hello-world.cbl: A simple "Hello, World!" program in COBOL.
-
resources/: Additional resources for learning COBOL.
-
tools/: Tools and scripts for working with COBOL.
- cobol-compiler/: Scripts for compiling COBOL programs.
- build-cobol-binary.sh: Script to build COBOL binaries.
- cobol-compiler/: Scripts for compiling COBOL programs.
To get started with COBOL, you can begin by reading the lecture notes in the docs/lectures/
directory. The first lecture provides an introduction to COBOL, its history, and its key features.
-
Navigate to the
examples/
directory:cd examples
-
Compile the
hello-world.cbl
program using the COBOL compiler script:../tools/cobol-compiler/build-cobol-binary.sh hello-world.cbl
-
Run the compiled binary:
./hello-world
You should see the output:
Hello, World!
If you would like to contribute to this repository, feel free to submit a pull request with your changes. You can contribute by adding new lectures, examples, tools, or resources related to COBOL.
This repository is licensed under the MIT License. See the LICENSE file for more details.
This repository was created by Andres Caicedo as part of a series of lectures on COBOL programming.