cob2 input and output files
You can specify the following files as input file-names
when you use the cob2
command.
File name | Description | Comments |
---|---|---|
file.cbl | COBOL source file to be compiled and linked | Will not be linked if you specify the cob2 option -c |
file.a | Archive file | Produced by the ar command, to
be used during the link-edit phase |
file.o | Object file to be link-edited | Can be produced by the COBOL compiler, the C/C++ compiler, or the assembler |
file.x | DLL definition side file | Used during the link-edit phase of an application that references the dynamic link library (DLL) |
If you
use the cob2
command, the following files are created
in the current directory.
File name | Description | Comments |
---|---|---|
file | Executable module or DLL | Created by the linker if you specify the cob2 option -o file |
a.out | Executable module or DLL | Created by the linker if you do not specify the cob2 option -o |
file.adt | Associated data (ADATA) file corresponding to input COBOL source program file.cbl | Created by the compiler if you specify compiler
option ADATA |
file.dek | Extended COBOL source output from library processing | Created by the compiler if you specify
compiler option MDECK |
file.lst | Listing file corresponding to input COBOL source program file.cbl | Created by the compiler |
file.o | Object file corresponding to input COBOL source program file.cbl | Created by the compiler |
file.x | DLL definition side file | Created during the cob2 linking
phase when creating file.dll |
class.java | Java™ class definition (source) | Created when you compile a class definition |