A collection of code I'm writing in order to learn cobol. Do not use this code for anything important.
https://sourceforge.net/projects/open-cobol/
cd gnu-cobol-2.0
./configure
make
sudo make install
# compile to executable
cobc -x executable.cob
# compile to lib
cobc lib.cob
#!/usr/local/bin/cobc -xj
identification division.
program-id. script1.
procedure division.
display "i'm a cobol script"
$ cob -xj sourcefile.cob
identification division.
program-id. module1.
environment division.
configuration section.
repository.
function all intrinsic.
procedure division.
main.
display "module-id = " module-id.
$ cobc -x module1.cob
$ ./module1
module-id = module1