The X/Open standards

The -xopen option tells the preprocessor that your program uses X/Open standards.

When you specify this option, the preprocessor performs the following two tasks:
  • It checks for HCL OneDB™ extensions to X/Open-standard syntax.

    If you include HCL OneDB extensions to X/Open-standard syntax in your code, the preprocessor generates warning messages.

  • It uses the X/Open set of codes for SQL data types.

    uses these codes in a dynamic management structure (a system-descriptor area or an sqlda structure) to indicate column data types. HCL OneDB defines these codes in the sqlxtype.h header file.

If you use X/Open SQL in the program, you must recompile any other source files in the same application with the -xopen option.

If you compile a program with both the -xopen and -ansi options, the preprocessor generates warning messages for HCL OneDB extensions to both X/Open and ANSI SQL syntax.