Linux Notes: hello-world-classic.cob

  1. The information presented here is intended for educational use by qualified computer technologists.
  2. The information presented here is provided free of charge, as-is, with no warranty of any kind.
Edit: 2026-09-25
Back to: Linux Notes: GnuCOBOL

hello-world-classic.cob

Notes:

12345678901234567890123456789012345678901234567890123456789012345678901234

      *890123456789012345678901234567890
      * file   : hello-world-classic.cob
      * notes  : this is a classic COBOL demo
      * build  : cobc -x hello-world-classic.cob
      * execute: ./hello-world-classic
      * history:
      * when       who what
      * 2023-02-14 NSR original effort
       IDENTIFICATION DIVISION.
       PROGRAM-ID. hello-world-classic.
       PROCEDURE DIVISION.
       DISPLAY "Hello World!".
       STOP RUN.

$ cobc -x hello-world-classic.cob$
$ ./hello-world-classic
Hello World!
$ man cobc
[[[ Linux manual contents are displayed ]]]
$ cobc -help
[[[ help text is displayed ]]]
$ cobc -i
[[[ compiler default flags are displayed ]]]

Back to Home
Neil Rieck
Waterloo, Ontario, Canada.