Chapter Contents |
Previous |
Next |
Linking C Programs |
The following sections describe how to link your C program in TSO.
The COOL CLIST |
COOL dsname [keywords]
Executing COOL with the IBM Linkage Editor |
COOL accepts the
NOCLINK
option, which causes the linkage editor to
be invoked directly without use of the COOL utility.
COOL allows you to specify any linkage editor options
such as
LIST
,
LET
,
MAP
,
XREF
,
TEST
,
RENT
,
OVLY
,
AMODE
, and
RMODE
. (These options are valid for the linkage editor whether or not
COOL is run.) The IBM MVS/XA Linkage Editor and Loader User's Guide discusses these options.
Linking All-Resident Programs |
When linking an all-resident program, include an object
deck created by compiling a source file that includes
<resident.h>
and the
appropriate macro definitions. See All-Resident C Programs for more information. For example, suppose
the PDS member INCNTL contains the following COOL control statements:
INCLUDE OBJLIB(MAINPROG) INCLUDE OBJLIB(SUB1) INCLUDE OBJLIB(SUB2)
COOL PROG(INCNTL) LIB('''MY.PROG.OBJ''') ...
INCNTL would contain the following COOL control statements:
INCLUDE OBJLIB(MAINPROG) INCLUDE OBJLIB(SUB1) INCLUDE OBJLIB(SUB2) INCLUDE OBJLIB(RESLIST)
The COOL command to link an all-resident version of this program is as follows:
COOL PROG(INCNTL) LIB('''MY.PROG.OBJ''') ALLRESIDENT
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.