Co-existence of CLI and ESQL in same application

Ask a Question related to IBM DB2, Design and Development.

  1. #1

    Default Co-existence of CLI and ESQL in same application

    Hi,
    I work for a company this is in the process of migrating existing
    ESQL code to CLI and I ran across problems with one of the
    applications that I'm in the process of converting since certain
    library calls within the APP still refer to ESQL code while most of
    the application database code has been converted to CLI. Is there any
    way to have this CLI co-exist with ESQL code so that we will be able
    to do a phased migration to CLI instead of having to rewrite all ESQL
    APIs in CLI upfront. Any help in this regard will be much appreciated.

    -Gautam
    Diablo Guest

  2. Similar Questions and Discussions

    1. Co-existence of ESQL and CLI in the same application
      Hi, I work for a company this is in the process of migrating existing ESQL code to CLI and I ran across problems with one of the applications that...
    2. ESQL/C -439
      Hi, Does this mailing list discuss issues regarding ESQL/C programming ? If so, i'm having a problem with the -439 error: -439 Database...
    3. Strange problem with ? parameter substitution with ESQL/C application
      We recently ran into this type of behavior as well with ESQL/COBOL (please don't ask). We were given 163480 as the bug number and it was introduced...
    4. Strange problem with ? parameter substitution with ESQL/C application against 9.40
      On Tue, 05 Aug 2003 05:41:11 -0400, Chris Hall wrote: Looks like the engine is seeing the parameters as strings. If so you may have a conversion...
    5. ESQL/C Error
      HI : My program is used the ESQL/C; at my home I can compile the program dbtool.ec to the dbtool.o; But in my office's host I compile my...
  3. #2

    Default Re: Co-existence of CLI and ESQL in same application

    Diablo wrote:
    > Hi,
    > I work for a company this is in the process of migrating existing
    > ESQL code to CLI and I ran across problems with one of the
    > applications that I'm in the process of converting since certain
    > library calls within the APP still refer to ESQL code while most of
    > the application database code has been converted to CLI. Is there any
    > way to have this CLI co-exist with ESQL code so that we will be able
    > to do a phased migration to CLI instead of having to rewrite all ESQL
    > APIs in CLI upfront. Any help in this regard will be much appreciated.
    >
    > -Gautam
    There's nothing preventing from you doing that. And I think DB2
    explicitly said you could do that. Say you a.sqc, just precompile it
    into a.c and then link it your cli application b.c and it will work
    fine. It's easier with embedded SQL code called by the cli code, since
    it can automatically inherit the connection. If you want to do it the
    other way around, I think you will have to do a null connection (it's
    documented somewhere).

    nobody Guest

  4. #3

    Default Re: Co-existence of CLI and ESQL in same application

    Review the chapter "Mixing Embedded SQL and DB2 CLI" in the CLI Guide and
    Reference (chapter on "Using Advanced Features"). It explains how to handle
    connections and lists the restrictions.

    "Diablo" <gsampathkuma@bloomberg.net> wrote in message
    news:80bb2c25.0309221352.323c74a3@posting.google.c om...
    > Hi,
    > I work for a company this is in the process of migrating existing
    > ESQL code to CLI and I ran across problems with one of the
    > applications that I'm in the process of converting since certain
    > library calls within the APP still refer to ESQL code while most of
    > the application database code has been converted to CLI. Is there any
    > way to have this CLI co-exist with ESQL code so that we will be able
    > to do a phased migration to CLI instead of having to rewrite all ESQL
    > APIs in CLI upfront. Any help in this regard will be much appreciated.
    >
    > -Gautam

    Mark Yudkin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139