Compiling stored procedures

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

  1. #1

    Default Compiling stored procedures

    Hi!

    We are using DB2 8.1 with FixPack 3 on Windows 2000 Server.

    We want to use stored procedures with our database, but when creating a
    simple stored procedure in a file and running that file through Command
    Line Processor we get an error about not being able to find nmake.

    Does this mean we also have to have a C compiler ? Is there any
    documentation how to set the environment for creating stored procedures up?

    Thanks for any help.

    Best regards,
    Kovi
    Gregor Kovač Guest

  2. Similar Questions and Discussions

    1. Stored Procedures
      Hi all, I'm a little confused about how to obtain a result set from a stored procedure (stored in a Visual FoxPro 8.0 database) from an ASP.NET...
    2. dt_ Stored Procedures
      Please could you tell me if it is safe to remove the dt_ stored procedures from my database? I have spent some time searching the web/groups for...
    3. New to ASP and Stored Procedures
      Hi I have some experince with ASP and databases in General, however Stored Procedures are new. I need to call a stored procedure and have bene...
    4. Compiling Stored procedures with gcc on Windows
      Hi, has anyone been able to compile SQL stored procedures on DB2 v7 UDB using the freeware GNU C complier on Windows using MinGW...
    5. Stored Procedures and 4GL
      Hello, I am using Informix 7 se database. Is it possible to call a 4GL program from a stored procedure? Thanks Ahmer
  3. #2

    Default Re: Compiling stored procedures

    If you are using SQL Stored Procs, you need a C Compiler on at least one
    machine with each os level/db2level. You can move the executables to other
    machines with the same os level/db2level. See the Application Building Guide.

    Larry Edelstein

    Gregor Kovač wrote:
    > Hi!
    >
    > We are using DB2 8.1 with FixPack 3 on Windows 2000 Server.
    >
    > We want to use stored procedures with our database, but when creating a
    > simple stored procedure in a file and running that file through Command
    > Line Processor we get an error about not being able to find nmake.
    >
    > Does this mean we also have to have a C compiler ? Is there any
    > documentation how to set the environment for creating stored procedures up?
    >
    > Thanks for any help.
    >
    > Best regards,
    > Kovi
    Larry Edelstein Guest

  4. #3

    Default Re: Compiling stored procedures


    "Gregor Kovač" <gregor.kovac@mikropis.si> a écrit dans le message de
    news:vTlab.3225$2B6.645451@news.siol.net...
    > Hi!
    >
    > We are using DB2 8.1 with FixPack 3 on Windows 2000 Server.
    >
    > We want to use stored procedures with our database, but when creating a
    > simple stored procedure in a file and running that file through Command
    > Line Processor we get an error about not being able to find nmake.
    >
    > Does this mean we also have to have a C compiler ? Is there any
    > documentation how to set the environment for creating stored procedures
    up?
    >
    > Thanks for any help.
    >
    > Best regards,
    > Kovi
    Hi Kovi,

    Yes you have to use a C compiler, that is Microsoft Visual C++.

    But you also might try gcc; you can have a look to
    [url]http://www7b.software.ibm.com/dmdd/library/techarticle/0306haungs/0306haungs.html[/url]
    that describes how to use GCC (at least for stored procs, not the samples
    ....)

    Cheers,

    Jean-Marc


    Jean-Marc Blaise Guest

  5. #4

    Default Re: Compiling stored procedures

    Gregor Kovac( wrote:
    > Hi!
    >
    > We are using DB2 8.1 with FixPack 3 on Windows 2000 Server.
    >
    > We want to use stored procedures with our database, but when creating a
    > simple stored procedure in a file and running that file through Command
    > Line Processor we get an error about not being able to find nmake.
    >
    > Does this mean we also have to have a C compiler ? Is there any
    > documentation how to set the environment for creating stored procedures up?
    >
    > Thanks for any help.
    >
    > Best regards,
    > Kovi
    Yes, you will need a C compiler. It's documented in detail in the
    application build guide.

    No Body Guest

  6. #5

    Default Re: Compiling stored procedures

    Hi Larry,

    I still consider this is a workaround (put routine/get routine). Just apply
    a fixpack on dev or integration, and you might have to wait before applying
    it to prod. Does this mean you should stop deploying stored procs ?

    Can we expect GNU be fully supported by IBM ?

    Regards,

    Jean-Marc

    "Larry Edelstein" <lsedels@us.ibm.com> a écrit dans le message de
    news:3F69F265.7D8A50B@us.ibm.com...
    > If you are using SQL Stored Procs, you need a C Compiler on at least one
    > machine with each os level/db2level. You can move the executables to other
    > machines with the same os level/db2level. See the Application Building
    Guide.
    >
    > Larry Edelstein
    >
    > Gregor Kovač wrote:
    >
    > > Hi!
    > >
    > > We are using DB2 8.1 with FixPack 3 on Windows 2000 Server.
    > >
    > > We want to use stored procedures with our database, but when creating a
    > > simple stored procedure in a file and running that file through Command
    > > Line Processor we get an error about not being able to find nmake.
    > >
    > > Does this mean we also have to have a C compiler ? Is there any
    > > documentation how to set the environment for creating stored procedures
    up?
    > >
    > > Thanks for any help.
    > >
    > > Best regards,
    > > Kovi
    >

    Jean-Marc Blaise Guest

  7. #6

    Default Re: Compiling stored procedures

    You're right - we are working to remove the requirement for a compiler.

    Apologies if it's been cited before, but an article showing you how to
    use GCC is here:

    [url]http://www7b.boulder.ibm.com/dmdd/library/techarticle/0306haungs/0306haungs.html[/url]

    Jean-Marc Blaise wrote:
    > Hi Larry,
    >
    > I still consider this is a workaround (put routine/get routine). Just apply
    > a fixpack on dev or integration, and you might have to wait before applying
    > it to prod. Does this mean you should stop deploying stored procs ?
    >
    > Can we expect GNU be fully supported by IBM ?
    >
    > Regards,
    >
    > Jean-Marc
    >
    > "Larry Edelstein" <lsedels@us.ibm.com> a écrit dans le message de
    > news:3F69F265.7D8A50B@us.ibm.com...
    >
    >>If you are using SQL Stored Procs, you need a C Compiler on at least one
    >>machine with each os level/db2level. You can move the executables to other
    >>machines with the same os level/db2level. See the Application Building
    >
    > Guide.
    >
    >>Larry Edelstein
    >>
    >>Gregor Kovač wrote:
    >>
    >>
    >>>Hi!
    >>>
    >>>We are using DB2 8.1 with FixPack 3 on Windows 2000 Server.
    >>>
    >>>We want to use stored procedures with our database, but when creating a
    >>>simple stored procedure in a file and running that file through Command
    >>>Line Processor we get an error about not being able to find nmake.
    >>>
    >>>Does this mean we also have to have a C compiler ? Is there any
    >>>documentation how to set the environment for creating stored procedures
    >
    > up?
    >
    >>>Thanks for any help.
    >>>
    >>>Best regards,
    >>> Kovi
    >>
    >
    >
    Blair Adamache Guest

  8. #7

    Default Re: Compiling stored procedures

    Hi Blair,

    The article you refer for GCC is only for compiling stored procs ... and you
    cannot even debug them with the Dev Center.
    I have also tried to compile the samples with this GCC, seems to compile,
    but most of the exe abort on Windows.

    Can we expect a full support of GCC one day ?

    Regards,

    Jean-Marc

    "Blair Adamache" <badamache@2muchspam.yahoo.com> a écrit dans le message de
    news:bko428$k9v$2@hanover.torolab.ibm.com...
    > You're right - we are working to remove the requirement for a compiler.
    >
    > Apologies if it's been cited before, but an article showing you how to
    > use GCC is here:
    >
    >
    [url]http://www7b.boulder.ibm.com/dmdd/library/techarticle/0306haungs/0306haungs.html[/url]
    >
    > Jean-Marc Blaise wrote:
    >
    > > Hi Larry,
    > >
    > > I still consider this is a workaround (put routine/get routine). Just
    apply
    > > a fixpack on dev or integration, and you might have to wait before
    applying
    > > it to prod. Does this mean you should stop deploying stored procs ?
    > >
    > > Can we expect GNU be fully supported by IBM ?
    > >
    > > Regards,
    > >
    > > Jean-Marc
    > >
    > > "Larry Edelstein" <lsedels@us.ibm.com> a écrit dans le message de
    > > news:3F69F265.7D8A50B@us.ibm.com...
    > >
    > >>If you are using SQL Stored Procs, you need a C Compiler on at least one
    > >>machine with each os level/db2level. You can move the executables to
    other
    > >>machines with the same os level/db2level. See the Application Building
    > >
    > > Guide.
    > >
    > >>Larry Edelstein
    > >>
    > >>Gregor Kovač wrote:
    > >>
    > >>
    > >>>Hi!
    > >>>
    > >>>We are using DB2 8.1 with FixPack 3 on Windows 2000 Server.
    > >>>
    > >>>We want to use stored procedures with our database, but when creating a
    > >>>simple stored procedure in a file and running that file through Command
    > >>>Line Processor we get an error about not being able to find nmake.
    > >>>
    > >>>Does this mean we also have to have a C compiler ? Is there any
    > >>>documentation how to set the environment for creating stored procedures
    > >
    > > up?
    > >
    > >>>Thanks for any help.
    > >>>
    > >>>Best regards,
    > >>> Kovi
    > >>
    > >
    > >
    >

    Jean-Marc Blaise Guest

  9. #8

    Default Re: Compiling stored procedures

    I expect we'll remove the need for a C compiler for SQL stored
    procedures before we support GCC.

    Jean-Marc Blaise wrote:
    > Hi Blair,
    >
    > The article you refer for GCC is only for compiling stored procs ... and you
    > cannot even debug them with the Dev Center.
    > I have also tried to compile the samples with this GCC, seems to compile,
    > but most of the exe abort on Windows.
    >
    > Can we expect a full support of GCC one day ?
    >
    > Regards,
    >
    > Jean-Marc
    >
    > "Blair Adamache" <badamache@2muchspam.yahoo.com> a écrit dans le message de
    > news:bko428$k9v$2@hanover.torolab.ibm.com...
    >
    >>You're right - we are working to remove the requirement for a compiler.
    >>
    >>Apologies if it's been cited before, but an article showing you how to
    >>use GCC is here:
    >>
    >>
    >
    > [url]http://www7b.boulder.ibm.com/dmdd/library/techarticle/0306haungs/0306haungs.html[/url]
    >
    >>Jean-Marc Blaise wrote:
    >>
    >>
    >>>Hi Larry,
    >>>
    >>>I still consider this is a workaround (put routine/get routine). Just
    >
    > apply
    >
    >>>a fixpack on dev or integration, and you might have to wait before
    >
    > applying
    >
    >>>it to prod. Does this mean you should stop deploying stored procs ?
    >>>
    >>>Can we expect GNU be fully supported by IBM ?
    >>>
    >>>Regards,
    >>>
    >>>Jean-Marc
    >>>
    >>>"Larry Edelstein" <lsedels@us.ibm.com> a écrit dans le message de
    >>>news:3F69F265.7D8A50B@us.ibm.com...
    >>>
    >>>
    >>>>If you are using SQL Stored Procs, you need a C Compiler on at least one
    >>>>machine with each os level/db2level. You can move the executables to
    >
    > other
    >
    >>>>machines with the same os level/db2level. See the Application Building
    >>>
    >>>Guide.
    >>>
    >>>
    >>>>Larry Edelstein
    >>>>
    >>>>Gregor Kovač wrote:
    >>>>
    >>>>
    >>>>
    >>>>>Hi!
    >>>>>
    >>>>>We are using DB2 8.1 with FixPack 3 on Windows 2000 Server.
    >>>>>
    >>>>>We want to use stored procedures with our database, but when creating a
    >>>>>simple stored procedure in a file and running that file through Command
    >>>>>Line Processor we get an error about not being able to find nmake.
    >>>>>
    >>>>>Does this mean we also have to have a C compiler ? Is there any
    >>>>>documentation how to set the environment for creating stored procedures
    >>>
    >>>up?
    >>>
    >>>
    >>>>>Thanks for any help.
    >>>>>
    >>>>>Best regards,
    >>>>> Kovi
    >>>>
    >>>
    >
    >
    Blair Adamache 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