The file specification for a host language source file that
contains embedded SQL statements. The default file extension
for the source file depends on the host language specified in the
language qualifier.
Language Default File Extension
Ada .sqlada
C .sc
COBOL .sco
FORTRAN .sfo
Pascal .spa
PL/I .spl
If the host language is Ada or COBOL, the file name (without the
file extension) cannot be longer than 27 characters.
The precompiler command line allows a list of host language
source files in this argument, but only processes the first file
specification it encounters. If you specify a list of files, the
precompiler:
o Gives a warning message that only the first file on the line
will be precompiled
o Ignores the other file specifications and passes them along to
the host language compiler in the same order as they appeared
on the precompiler command line
For instance, the following command lines are valid, but only the
MY_FILE host language file is precompiled:
$ SQLPRE/PLI/LIS/DEB MY_FILE+MY_TLB_1/LIB+MY_TLB_2/LIB
$ SQLPRE/PASCAL MY_FILE,MY_OTHER_FILE
$ SQLPRE/COB/DEB MY_FILE,MY_NODB_FILE
$ SQLPRE/CC MY_FILE+REST_OF_APPL+APPL_TLB/LIB
For the previous command lines, the precompiler passes the
following corresponding command lines to the host language
compiler:
$ PLI/LIS/DEB MY_FILE.PLI;n+MY_TLB_1/LIB+MY_TLB_2/LIB/NOG_FLOAT
$ PAS MY_FILE.PAS;n,MY_OTHER_FILE
$ COB/DEB MY_FILE.COB;n,MY_NODB_FILE
$ CC MY_FILE.C;n+REST_OF_APPL+APPL_TLB/LIB/NOG_FLOAT
The ;n notation signifies the version number of the host language
file generated by the SQL precompiler.