The following examples show the output produced for various cob2 invocations.
| To compile: | Enter: | These files are produced: |
|---|---|---|
| alpha.cbl | cob2 -c alpha.cbl | alpha.o |
| alpha.cbl and beta.cbl | cob2 -c alpha.cbl beta.cbl | alpha.o, beta.o |
| alpha.cbl with the LIST and ADATA options | cob2 -qlist,adata alpha.cbl | alpha.wlist, alpha.o1, alpha.lst, alpha.adt, and a.out |
|
||
Examples: using cob2 for linking
related tasks
Compiling from the command line