Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2007
    Posts
    1

    Unanswered: Connecting to DB2 database from NetExpress University Edition

    Greetings all.

    I am new to the forum and believe it will really be beneficial to me.
    I am developing a cobol program in NetExpress University Edition and i have to access a DB2 database.

    I keep receiving this message; no database name was specified.

    Here are the SQL code which i believe could have serve the purpose.


    WORKING-STORAGE SECTION

    EXEC SQL
    INCLUDE CUSTOMER(table name)
    END-EXEC.

    EXEC SQL
    INCLUDE SQLCA
    END-EXEC.


    PROCEDURE DIVISION.

    EXEC SQL
    CONNECT TO DELL-DB2-SALES(database name)
    END-EXEC.

    Please, can any one assist me on this.

    Regards

  2. #2
    Join Date
    Jun 2006
    Posts
    471
    I believe the dbname is still limited to 8 characters
    Best Regards, Guy Przytula
    DB2 UDB LUW certified V6/7/8

Posting Permissions

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