home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vgserv45.zip / BASE / HPTWGS2 / include / fcwcmndb.h < prev    next >
Text File  |  2001-03-21  |  3KB  |  53 lines

  1. /*****************************************************************************/
  2. /*                                                                           */
  3. /*                           OCO SOURCE MATERIALS                            */
  4. /*                             IBM CONFIDENTIAL                              */
  5. /*                                    OR                                     */
  6. /*                        IBM CONFIDENTIAL RESTRICTED                        */
  7. /*            WHEN COMBINED WITH THE AGGREGATED OCO SOURCE MODULES           */
  8. /*                           FOR THIS PROGRAM PRODUCT                        */
  9. /*                                                                           */
  10. /*      VisualAge Generator Server for OS/2, AIX, HP-UX, and Windows NT      */
  11. /*                          Version 3.0  5697-C28                            */
  12. /*                    (C) COPYRIGHT IBM CORP. 1994,1997                      */
  13. /*                                                                           */
  14. /*****************************************************************************/
  15. #ifndef  FCWCMNDB_H
  16. #define  FCWCMNDB_H
  17.  
  18. // ******************************************************************
  19. //   Defines for database name, its derivation and default
  20. // ******************************************************************
  21. static char* PREFIX4_DB_ENV  = "FCWDBNAME_";     // appl. specific
  22. static char* FCWAD_DB_ENV    = "EZERSQLDB";      // VG/2AD DB default
  23. static char* DEFAULT_DB_NAME = "SAMPLE";         // default
  24. static char* PREFIX4_CICS_DB_ENV  = "FCWTRDB_";  // appl. specific
  25.  
  26. // --------------------------------------------------------------------
  27. //  Macro for SQL datatype, using ANSI type of numbering
  28. // --------------------------------------------------------------------
  29. const   char   FCW_SQL_COMMIT        = 1;        // SQLTransact() defines
  30. const   char   FCW_SQL_ROLLBACK      = 2;
  31.  
  32. const   char   FCW_SQL_CLOSE         = 0;        // SQLFreeStmt() defines
  33. const   char   FCW_SQL_DROP          = 1;
  34.  
  35. // --------------------------------------------------------------------
  36. //               SQL global defines
  37. // --------------------------------------------------------------------
  38. const   int    LENGTH_CURSOR_NAME    = 18;
  39.  
  40. const   char   DB_STATE_UNINI        = 1;
  41. const   char   DB_STATE_TRANS        = 2;
  42.  
  43. const   short  NO_EXEC_TIME_BLD       = 1;       // SQL execution time build
  44. const   short  EXEC_TIME_BLD          = 2;       //   option specification
  45. const   short  HOST_VAR_TABLE_NAME    = 4;       // SQL statement contains
  46. const   short  NO_HOST_VAR_TABLE_NAME = 8;       //   host variable name
  47. const   short  SINGLE_ROW_SELECTION   = 16;      // INQUIRY is a single row
  48. const   short  NO_SINGLE_ROW_SELECTION = 32;     //   selection
  49. const   short  CURSOR_WITH_HOLD       = 64;      // Cursor defined WITH HOLD
  50. const   short  NO_CURSOR_WITH_HOLD    = 128;
  51.  
  52. #endif
  53.