Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Examples: using cob2 for compiling

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

Table 25. Output from the cob2 command
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

related references
ADATA
LIST


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)