If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Connecting to DB2 database from NetExpress University Edition

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-07, 11:36
tabitarh tabitarh is offline
Registered User
 
Join Date: Oct 2007
Posts: 1
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
Reply With Quote
  #2 (permalink)  
Old 10-14-07, 03:01
guyprzytula guyprzytula is offline
Registered User
 
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On