Create the runable bytecode file with the instructions below. This transpiles our COBOL program called ‘hello.cbl’ to C then it takes the C and produces an executable object/bytecode file called ‘hello’.
Compile and then run with:
cobc -x -o hello hello.cbl
./hello
Should output:
WILLKOMMEN
Leave a Reply