Embedded SQL source files
When you develop source
code that includes embedded SQL, you must follow specific file naming
conventions for each of the supported host languages.
Input and output files for C and C++
By
default, the source application can have the following extensions:
- .sqc
- For C files on all supported operating systems
- .sqC
- For C++ files on UNIX and Linux® operating systems
- .sqx
- For C++ files on Windows operating systems
By default, the corresponding precompiler
output files have the following extensions:
- .c
- For C files on all supported operating systems
- .C
- For C++ files on UNIX and Linux operating systems
- .cxx
- For C++ files on Windows operating systems
You can use the OUTPUT
precompile
option to override the name and path of the output modified source
file. If you use the TARGET C
or TARGET CPLUSPLUS
precompile
option, the input file does not need a particular extension.
Input and output files for COBOL
By default,
the source application has an extension of:
- .sqb
- For COBOL files on all operating systems
However, if you use the TARGET precompile option (TARGET ANSI_COBOL, TARGET IBMCOB or TARGET MFCOB), the input file can have any extension you prefer.
By default, the corresponding
precompiler output files have the following extensions:
- .cbl
- For COBOL files on all operating systems
However, you can use the OUTPUT precompile option to specify a new name and path for the output modified source file.
Input and output files for FORTRAN
By default,
the source application has an extension of:
- .sqf
- For FORTRAN files on all operating systems
However, if you use the TARGET precompile option with the FORTRAN option the input file can have any extension you prefer.
By default, the corresponding precompiler output files
have the following extensions:
- .f
- For FORTRAN files on UNIX and Linux operating systems
- .for
- For FORTRAN files on Windows operating systems
However, you can use the OUTPUT precompile option to specify a new name and path for the output modified source file.