How to Compile and run

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


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *