Make cobol.cbl a well-formed COBOL program.
- Start statements after seven columns. - Use lowercase, as it is less hideous. - Terminate `display` properly with `end-display`. - Make the `program-id` field match the file name.
This commit is contained in:
committed by
GitHub
parent
1def7381b8
commit
3e8f5ba47d
12
c/cobol.cbl
12
c/cobol.cbl
@@ -1,6 +1,6 @@
|
||||
IDENTIFICATION DIVISION.
|
||||
PROGRAM-ID. HELLOWORLD.
|
||||
PROCEDURE DIVISION.
|
||||
MAIN.
|
||||
DISPLAY 'Hello, world.'.
|
||||
STOP RUN.
|
||||
identification division.
|
||||
program-id. cobol.
|
||||
procedure division.
|
||||
main.
|
||||
display 'Hello, world.' end-display.
|
||||
stop run.
|
||||
|
||||
Reference in New Issue
Block a user