Skip to content

Instantly share code, notes, and snippets.

@CallMeZhou
Created September 6, 2021 19:14
Show Gist options
  • Save CallMeZhou/8b30bdd016874a9c4efa6ebd56e90868 to your computer and use it in GitHub Desktop.
Save CallMeZhou/8b30bdd016874a9c4efa6ebd56e90868 to your computer and use it in GitHub Desktop.
* Manditory division - Identify the program
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLOCBL.
* Optional division - Define they source computer and the
* target/build computer
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. ZOS.
OBJECT-COMPUTER. ZOS.
* Optional division - define working variables, etc.
DATA DIVISION.
WORKING-STORAGE SECTION.
* Mandatory divison - the actual program/logic
PROCEDURE DIVISION.
MAIN-PARA.
* Print hello world
DISPLAY "Hello, World!".
* End the program
STOP RUN.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment