SQL/MP Programming Manual for C
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for C—429847-008
6-9
Running the TNS C Compiler in the Guardian
Environment
Running the TNS C Compiler in the Guardian Environment
To run the TNS C compiler in the Guardian environment, use the TACL RUN 
command:
source 
is the primary source file of the compilation unit. source can be a text disk file 
(code 101), a C-format disk file (code 180), a terminal, a magnetic tape unit, or a 
process. The default is your home terminal if your TACL process is running in 
interactive mode. 
Do not use the same name for different functions in separate source modules if the 
modules contain SQL statements. Using the same name can cause SQL internal 
data structures to be interpreted as duplicates. Consequently, the SQL statements 
in one of the functions are not included in the object file. 
list-file 
is the file that receives the compiler listing. The default is the default output file 
(usually, your home terminal); list-file can also be a class SPOOL DEFINE 
name.
run-option 
is one or more TACL RUN command options (separated by commas) as described 
in the TACL Reference Manual.
object 
specifies the object file to which the TNS C compiler writes the compilation unit. 
If you omit object, the compiler creates a file named OBJECT in your default 
volume and subvolume. If the compiler cannot create OBJECT (usually, because a 
file with this name already exists and cannot be purged), the compiler creates a 
file, ZZBInnnn, in your default volume and subvolume (where nnnn is a 4-digit 
number determined by the system). 
compiler-option 
is a TNS C compiler pragma or preprocessor symbol. 
For single-module programs that run in the Guardian environment, specify the 
RUNNABLE pragma to generate an executable program object file. 
To direct the TNS C compiler to generate an object file that runs in the OSS 
environment, specify the SYSTYPE OSS pragma. 
[ RUN ] C / IN source [, OUT list-file ] [ , run-option ]... 
/ 
 [ object ] [ ; compiler-option [ , compiler-option ]... 
]










