SEPOBJ specifies whether each of the outermost COBOL programs in a batch compilation is to be generated as a separate object file rather than as a single object file.
| SEPOBJ option syntax |
|---|
|
Default is: SEPOBJ
Abbreviations are: None
When multiple outermost programs (nonnested programs) are compiled with a single batch invocation of the compiler, the number of files produced for the object program output of the batch compilation depends on the compiler option SEPOBJ.
Assume that the COBOL source file pgm.cbl contains three outermost COBOL programs named pgm1, pgm2, and pgm3. The following figures illustrate whether the object program output is generated as two files (with NOSEPOBJ) or three files (with SEPOBJ).
Batch compilation with NOSEPOBJ

Batch compilation with SEPOBJ

Usage notes
You must give the object file a valid file-name for the platform and the file system. For example, if the FAT file system is used, the length in characters of the PROGRAM-ID name must be eight or less except when the object file-names are created from the source file-name (as in the case with NOSEPOBJ) as described above.