/*****************************************************************************/
/*                                                                           */
/*                           OCO SOURCE MATERIALS                            */
/*                             IBM CONFIDENTIAL                              */
/*                                    OR                                     */
/*                        IBM CONFIDENTIAL RESTRICTED                        */
/*            WHEN COMBINED WITH THE AGGREGATED OCO SOURCE MODULES           */
/*                           FOR THIS PROGRAM PRODUCT                        */
/*                                                                           */
/*      VisualAge Generator Server for OS/2, AIX, HP-UX, and Windows NT      */
/*                          Version 3.0  5697-C28                            */
/*                    (C) COPYRIGHT IBM CORP. 1994,1997                      */
/*                                                                           */
/*****************************************************************************/
#ifndef  FCWCMNDB_H
#define  FCWCMNDB_H

// ******************************************************************
//   Defines for database name, its derivation and default
// ******************************************************************
static char* PREFIX4_DB_ENV  = "FCWDBNAME_";     // appl. specific
static char* FCWAD_DB_ENV    = "EZERSQLDB";      // VG/2AD DB default
static char* DEFAULT_DB_NAME = "SAMPLE";         // default
static char* PREFIX4_CICS_DB_ENV  = "FCWTRDB_";  // appl. specific

// --------------------------------------------------------------------
//  Macro for SQL datatype, using ANSI type of numbering
// --------------------------------------------------------------------
const   char   FCW_SQL_COMMIT        = 1;        // SQLTransact() defines
const   char   FCW_SQL_ROLLBACK      = 2;

const   char   FCW_SQL_CLOSE         = 0;        // SQLFreeStmt() defines
const   char   FCW_SQL_DROP          = 1;

// --------------------------------------------------------------------
//               SQL global defines
// --------------------------------------------------------------------
const   int    LENGTH_CURSOR_NAME    = 18;

const   char   DB_STATE_UNINI        = 1;
const   char   DB_STATE_TRANS        = 2;

const   short  NO_EXEC_TIME_BLD       = 1;       // SQL execution time build
const   short  EXEC_TIME_BLD          = 2;       //   option specification
const   short  HOST_VAR_TABLE_NAME    = 4;       // SQL statement contains
const   short  NO_HOST_VAR_TABLE_NAME = 8;       //   host variable name
const   short  SINGLE_ROW_SELECTION   = 16;      // INQUIRY is a single row
const   short  NO_SINGLE_ROW_SELECTION = 32;     //   selection
const   short  CURSOR_WITH_HOLD       = 64;      // Cursor defined WITH HOLD
const   short  NO_CURSOR_WITH_HOLD    = 128;

#endif
