![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/C C++ Development System User's Guide, Release 6.50 |
COOL accepts four control
statements: INCLUDE, INSERT, ARLIBRARY, and GATHER. All COOL control statements
must have a blank in the first column.
The INCLUDE control statement is used to specify one or more additional files to be used as input to COOL. The INCLUDE statement has two formats. The first is
| INCLUDE filename <, . . .> |
Under TSO and MVS batch, filename is a DDname that has been allocated to a sequential data set or PDS member. Under CMS, filename is the filename of a CMS file. The filetype must be TEXT. The file can be on any accessed minidisk or in a SFS directory accessed as a minidisk, or it can be in an SFS directory that has been named in the _INCLUDE environment variable. (See the SAS/C Compiler and Library User's Guide for more information about the _INCLUDE environment variable.)
The second format of the INCLUDE statement is
| INCLUDE libname (member<,member>)<, . . .> |
Under CMS, libname is the name of a TEXT library. The filetype must be TXTLIB. The library can be on any accessed disk. member is the name of a member in the TEXT library. Under TSO and MVS batch, libname is a DDname that has been allocated to a PDS, and member is the name of a member in that PDS. The two formats can be combined in the same statement. Here are several examples of the INCLUDE statement:
An included object file can also contain an INCLUDE statement. The
specified
modules are also included, but any data in the object file after the INCLUDE
statement is ignored.
The INSERT control statement is used to specify one or more external symbols that are to be resolved, if necessary, via COOL's autocall mechanism. The format of the INSERT statement is
| INSERT symbol-1<,symbol-2 . . .> |
If a symbol specified in an INSERT statement is not resolved after all
primary input has been processed, COOL attempts to resolve it by using automatic
library call.
The ARLIBRARY statement specifies the names of one or more AR370 archives to be used to resolve external references by COOL. The format of the ARLIBRARY statement is as follows:
| ARLIBRARY name-1<,name-2 . . .> |
Under TSO and MVS batch, name is the DDname that has been allocated to the data set. Under CMS, name is the filename of the archive file. COOL uses A as the filetype.
For more information on the AR370 utility, refer to the SAS/C
Compiler and Library User's Guide.
The last control statement accepted by COOL is the GATHER control statement. You do not need to use any GATHER statements to link your C++ program; however, a GATHER statement is generated automatically for you by COOL when C++ programs are linked. This special statement causes COOL to create tables of functions that are used to initialize and terminate static objects in your program. COOL prints the names of the functions in these tables in its listing. Usually this information can be ignored, although it may be useful for debugging.
The format of the GATHER statement is
| GATHER prefix<,prefix2 . . .> |
where prefix is a one- to six-character symbol.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © Tue Feb 10 12:11:23 EST 1998 by SAS Institute Inc., Cary, NC, USA. All rights reserved.