Options (C/C++ Precompiler) 

C/C++ Precompiler

You can enter the following options when you call up the C/C++ Precompiler:

 

Option

Default

ansi c

-E cansi

 

c++

-E cplus

 

check nocheck
check syntax

-H nocheck
-H syntax

-H check

comment

-o

 

compatible

-C

 

datatime eur
datetime iso
datetime jis
datetime usa

-D eur
-D iso
-D jis
-D usa

-D internal

dblocale

-x <dblocale>

 

extern

-e

 

help

-h

 

isolation-level

-I <isolation_level>

-I 10

list

-l

 

margins

-m <m_begin>,<m_end>

-m 1,132

maxpacketsize

-b <max_packet_size>

-b 16000

nowarn

-w

 

precom

-c

 

profile

-R

 

program

-P <program_name>

-P <file_name>

serverdb

-d <database_name>

 

servernode

-n <server_node>

 

silent

-s

 

sqlmode internal
sqlmode ansi
sqlmode ansiora
sqlmode db2
sqlmode oracle

-S internal
-S ansi
-S ansiora
-S db2
-S oracle

-S internal

timeout

-t <timeout>

 

trace file
trace long
trace short

-F <trace_file>
-X
-T

 

unicode

-G unicode

 

user

-u <userid>,<password>

 

userkey

-U <user_key>

 

version

-V

 

32 Bit Support

-BIT32

64 Bit if available

SDK Version

-MmCC
M=Major m=Minor C=Correctionlevel

7401

 

The following user specifications as options should be transferred: database user and the name of the database instance

cpc -u smith,geheim -d MK1 testfile

The C/C++ Precompiler is called and the user smith connects to the database instance MK1 to compile the file testfile.cpc.

See also:

Application Programs

When an application program is called, you can enter the following options for the runtime environment:

 

runtime_options

dblocale

-x <dblocale>

isolation-level

-I <isolation_level>

no select direct fast

-f

profile

-R

serverdb

-d <database_name>

servernode

-n <server_node>

timeout

-t <timeout>

trace alt
trace file
trace long
trace no date/time
trace short
trace time

-Y <statement_count>
-F <trace_file>
-X
-N
-T
-L <seconds>

user

-u <userid>,<password>

userkey

-U <user_key>

See also: