COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

the ERROR CODE and MESSAGE SOURCE clauses of the RECEIVE-CONTROL paragraph in
other programs are ignored.
Compiler Output
The output of a compilation can include a listing (to an existing file or spooler) and an object file,
but it always includes compilation statistics and a completion code. You can manipulate the object
file.
Listing Creation
The listing is added to the end of the listing (OUT) file. The listing file can be either a disk file or
nondisk file (see Starting a Compilation). If it is a disk file, it must exist before you start the
compilation.
To create a listing file, use the command:
FUP CREATE disk-file-name, TYPE E, REC 132[, EXT pages]
disk-file-name
is a disk file name (see the Guardian Procedure Calls Reference Manual).
pages
is the number of extended segment pages.
TYPE E
specifies an entry-sequenced file.
REC 132
specifies 132-character records (partial lines are space-filled on the right through column 132).
EXT pages
is necessary only if disk-file-name exceeds the standard number of allocated segments.
For more information, see Source Program Listing (page 770).
Object File Creation
The object file that the compiler produces is either a linkfile or a loadfile.
The compiler produces a loadfile if you specify the directive RUNNABLE (page 562). If the compilation
unit contains no main program, executing the object file causes it to terminate immediately with
an error message. The compiler produces a linkfile by default (if you do not specify the RUNNABLE
directive). Linkfiles that the compiler produces can be input to the eld utility. Loadfiles that the
compiler produces cannot be input to the eld utility. For information on the eld utility, see the eld
Manual.
Object File Size
The Guardian ECOBOL compiler specifies the maximum allowable size of the generated object
file in terms of extents. Extents are measured in pages of 2K bytes each. The default extent size
specified by the ECOBOL compiler is 32 pages. The maximum allowed number of extents for a
Guardian file is 900, for a maximum object file size of approximately 56MB. For more information
about Guardian extents, see the Guardian Programmer’s Guide.
If you expect that an object file will exceed the 56MB limit, you can specify the OBJEXTENT directive
on the ECOBOL command line. The OBJEXTENT directive allows you to increase the size of the
extents used for the object file, up to a maximum of 1070 pages, for a maximum object file size
of approximately 2043MB.
524 Program Compilation