aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/BUILD8
-rw-r--r--examples/HELLO_WORLD.CBL8
2 files changed, 16 insertions, 0 deletions
diff --git a/examples/BUILD b/examples/BUILD
new file mode 100644
index 0000000..e90e7fa
--- /dev/null
+++ b/examples/BUILD
@@ -0,0 +1,8 @@
+load("//cobol:def.bzl", "cobol_binary")
+
+cobol_binary(
+ name = "hello_world",
+ srcs = [
+ "HELLO_WORLD.CBL",
+ ],
+)
diff --git a/examples/HELLO_WORLD.CBL b/examples/HELLO_WORLD.CBL
new file mode 100644
index 0000000..704c58a
--- /dev/null
+++ b/examples/HELLO_WORLD.CBL
@@ -0,0 +1,8 @@
+ IDENTIFICATION DIVISION.
+ PROGRAM-ID. HELLO_WORLD.
+ DATA DIVISION.
+ WORKING-STORAGE SECTION.
+ 77 FOO PIC 99 VALUE 43.
+ PROCEDURE DIVISION.
+ DISPLAY "Hello, World!" FOO
+ STOP RUN.