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


SEPOBJ

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
Read syntax diagramSkip visual syntax diagram   .-SEPOBJ---.  
>>-+----------+------------------------------------------------><
   '-NOSEPOBJ-'  
 

Default is: SEPOBJ

Abbreviations are: None

Batch compilation

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 using NOSEPOBJ results in the three programs being in two files. File pgm.ojb contains pgm1. File pgm.lib contains all three programs.

Batch compilation with SEPOBJ

Batch compilation using SEPOBJ results in the three programs being in three separate files: pgm.obj, pgm2.obj, and pgm3.obj.

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.


Terms of use | Feedback

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