Skip to content

Instantly share code, notes, and snippets.

@riferrei
Created October 10, 2011 04:05
Show Gist options
  • Save riferrei/1274609 to your computer and use it in GitHub Desktop.
Save riferrei/1274609 to your computer and use it in GitHub Desktop.
IDENTIFICATION DIVISION.
PROGRAM-ID. 'helloworld'.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
DATA DIVISION.
FILE SECTION.
WORKING-STORAGE SECTION.
01 MSG PIC X(80).
LINKAGE SECTION.
PROCEDURE DIVISION.
MAIN SECTION.
MOVE "Hello World from COBOL!" TO MSG
DISPLAY MSG
ACCEPT MSG
EXIT PROGRAM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment