GithubHelp home page GithubHelp logo

seanpm2001 / learn-cobol Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 390 KB

A repository for showcasing my knowledge of the COBOL programming language, and continuing to learn the language (not too likely)

Home Page: https://github.com/seanpm2001/Learn-COBOL/

License: GNU General Public License v3.0

COBOL 100.00%
cobol learn-cobol cobol-lang cobol-language txt md gpl3 gplv3 education cobol-collection

learn-cobol's Introduction


COBOLOGO.PNG

Learning COBOL (programming language)

This section will go over my knowledge of the COBOL programming language. I am not very experienced with it, and likely won't dedicate too much time to it, since it is obsolete, and only used by dinosaur mainframe computers in businesses and governments who refuse to update from an 8 bit system while the rest of the world uses (rarely:32 bit) 64 bit and 128 bit systems. Enough bashing of the language with jargon terms, so far I actually like writing in it for some reason. It isn't as productive as C or Python though, so I prefer to stick with a newer, modern language.

Printing out to the screen in COBOL

In COBOL, to print to the screen you use the DISPLAY keyword like so:

DISPLAY "Sample text".

Comments in COBOL

COBOL comments are written like so:

*> COBOL only supports single line comments

Hello World in COBOL

Out of this example, I can only memorize the DISPLAY keyword. Here is the standard Hello World program in COBOL

       IDENTIFICATION DIVISION.
       PROGRAM-ID. hello-world.
       PROCEDURE DIVISION.
           DISPLAY "Hello, world!"
           .

End of line

In COBOL, a . must be placed at the end of every line. It is the languages equivalent to a semicolon. It is done like so:

DISPLAY "EOL".

Other knowledge of the COBOL programming language

  1. COBOL stands for COmmon Business Oriented Language

  2. COBOL uses the .cob .cbl and .cpy file extension, and according to Notepad++ it also uses the .cdc file format.

  3. The Jargon file refers to COBOL as "a language for dinosaur computers"

  4. COBOL is considered archaic by its own developers since the 1970s (specifically after the release of the C programming language) but it is still used by too many industries (over 5 billion lines of code written annually, over 200 billion lines of COBOL in total)

  5. COBOL is NOT a semicolon and curly bracket language

  6. No other knowledge of the COBOL programming language.


learn-cobol's People

Contributors

seanpm2001 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.