The following examples show the output produced for various cob2 specifications.
| To compile: | Enter: | These files are produced: |
|---|---|---|
| alpha.cbl | cob2 -c alpha.cbl | alpha.obj and alpha.lst |
| alpha.cbl and beta.cbl | cob2 -c alpha.cbl c:\mydir\beta.cbl | alpha.obj, beta.obj; alpha.lst, beta.lst in the current directory |
| alpha.cbl with the LIST and ADATA options | cob2 -qlist,adata alpha.cbl | alpha.asm, alpha.obj, alpha.lst, alpha.adt, and alpha.exe |
related tasks
Compiling from the command line