Examples: using cob2 for compiling

The following examples show the output produced for various cob2 invocations.

Table 1. Output from the cob2 command
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
  1. If the linking is successful, this file is deleted.

Examples: using cob2 for linking

related references  
ADATA  
LIST