SQL/MX Programming Manual for C and COBOL (G06.24+, H06.03+)

C/C++ Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL523627-004
15-17
OSS-Hosted SQL/MX C/C++ Preprocessor
and Date-Time and Interval Host Variables (SQL/MX Release 1.8 Applications) on
page 3-32.
-n
directs the preprocessor to automatically append a null terminator to all host
variable character strings before they are fetched into. Using the -n option does
have the potential to produce nonportable code. Moreover, if the -a option is used
together with the -n option, the -n option has no effect on VARCHARs.
-a
specifies that VARCHARs are to be translated into structures that contain a length
and character string. For details about using this option, see Generating Structures
Instead of Using Null-Terminated Strings on page 3-17 and Example: Using a
Structure on page 3-18.
This preprocessor option overrides the SQL/MX default VARCHAR, which is a
string with a null terminator. Moreover, if the -a option is used together with the -n
option, the -n option has no effect on VARCHARs.
-l list-file
is the name of the output list file that contains preprocessor error and warning
messages. The default is source-file.lst, where source-file is the name
of the SQL/MX C/C++ source file (for example, sqlprog.sql) without the file
extension.
-p
turns off the automatic generation of #line directives in the C/C++ output file,
disables source-level debugging, and shows the generated C/C++ code for
debugging purposes.
-o
overrides the use of Tandem floating point and uses IEEE floating point instead for
host variables. In addition, if used with invoked SQL/MP tables with a column of
type REAL, this option causes the invoked structure to be of type DOUBLE. For
more information, see INVOKE and Floating-Point Host Variables on page 3-33.
-t timestamp
provides a creation timestamp that the preprocessor writes to the C/C++ annotated
source file (and the module definition file if the -x or -m preprocessor option or the
SQLMX_PREPROCESSOR_VERSION=800 environment variable is used). The
timestamp value overrides the operating system timestamp.
For example, you can specify these timestamp values:
-t "2005-10-26 09:01:20.00"
-t 2005-10-26.12:0000.000000