This table shows all the options you can specify when you call the precompiler.
-E cansi |
Generates ANSI C-compatible code |
-E cplus |
Generates C++-compatible code |
-BIT32 |
Generates 32 bit-compatible code If you do not specify this option, the precompiler generates 64 bit-compatible code, if possible. |
-m <m_begin,m_end> |
Defines the valid column range in which the precompiler interprets source code If you
do not specify this option, the following defaults apply: |
-e |
Generates a program module that can be combined with other modules Only translate the main module without this option, all other modules must be compiled with this option. |
-H <check_option> <check_option> = nocheck|syntax|check |
Sets the chosen check option for the precompiler nocheck: the precompiler checks only the syntax of the exec sql commands for the embedded SQL statements syntax: the precompiler also checks the syntax of the database statements themselves check: the precompiler also checks the existence of the called database tables and columns, their compatibility with the data types of the corresponding host variables, and the access privileges of the specified database user If you do not specify a check option, the precompiler uses check automatically. |
-b <maxpacketsize> |
Restricts the size of the request buffer for SQL statements when the precompiler runs The default when the precompiler runs is <maxpacketsize> = 16000 At runtime of the application program, the request buffer is restricted by the support database parameter _PACKAGE_SIZE of the database instance that is being addressed. |
-G unicode |
Specifies that the generic precompiler data types, such as TCHAR and LPSTR, are converted to UNICODE data types such as WCHAR and LPWSTR At the same time, the precompiler integrates the macro SAPDB_WITH_UNICODE with the source code. If you do not specify this option, then the generic data types are converted to ANSI data types (CHAR, CHAR*). |
-s |
Suppresses the screen output of precompiler messages |
-w |
Suppresses the output of any precompiler warnings |
-o |
Specifies that the embedded SQL statements are copied to the source code generated by the precompiler as comments |
-l |
Specifies that the precompiler writes the embedded SQL statements and their error messages to the precompiler log |
-c |
Prevents the compiler from being called automatically after the precompiler has run successfully However, the source file for the compiler is retained. |
-T |
Sets the default TRACE SHORT for the trace option |
-X |
Sets the default TRACE LONG for the trace option |
-F <trace_file_name> |
Sets the default for the name of the trace file (see Trace Options) |
-n <server_name> |
Overrides the database server specified in the SET SERVERDB statement or CONNECT statement for the first database session |
-d <database_name> |
Overrides the database instance specified in the SET SERVERDB statement or CONNECT statement for the first database session |
-u <user_name>,<password> |
Overrides the user name and password specified in the CONNECT statement of the first database session |
-U <user_key> |
Overrides the KEY specified in the CONNECT statement for the first database session |
-S <sql_mode> <sql_mode> = internal|ansi|oracle |
Defines the SQL mode for your application program If you do not specify an SQL mode, the precompiler uses the INTERNAL mode automatically. |
-D <datetimeformat> <datetimeformat> = eur|iso|jis|usa|internal |
Defines the date and time format used in the application program If you do not specify a format, the precompiler uses the INTERNAL format automatically. |
-V |
Displays the precompiler version |
-<sdkver> |
Specifies the version of the precompiler software For example, enter –7402, if you have installed Version 7.4.02. |
-h |
Displays all call options for the precompiler and precompiler runtime environment |