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 > DB2 Stored Procs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-16-03, 18:56
venkat_dba venkat_dba is offline
Registered User
 
Join Date: Dec 2003
Posts: 19
DB2 Stored Procs

Hi ,
I am using DB2 Stored procedures for 8.1. I am using sql programming language for the stored procedures. In Solaris 2.8, we are trying to get stored procs up and running. The problem i have is , we dont have cc compiler. So we have installed gcc compiler.

I tried setting db2_sqlroutine_command and path , but i got rc = -4400 or rc = -1092 for that.

Kindly help

thanks
venkat
Reply With Quote
  #2 (permalink)  
Old 12-16-03, 19:20
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: DB2 Stored Procs

Is it the return code when setting the variables or when creating the procedure ?

Please provide SQLcode and sqlstate messages

Cheers
Sathyaram

Quote:
Originally posted by venkat_dba
Hi ,
I am using DB2 Stored procedures for 8.1. I am using sql programming language for the stored procedures. In Solaris 2.8, we are trying to get stored procs up and running. The problem i have is , we dont have cc compiler. So we have installed gcc compiler.

I tried setting db2_sqlroutine_command and path , but i got rc = -4400 or rc = -1092 for that.

Kindly help

thanks
venkat
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 12-16-03, 19:24
venkat_dba venkat_dba is offline
Registered User
 
Join Date: Dec 2003
Posts: 19
Re: DB2 Stored Procs

Hi sathyaram,
Thanks for the reply. Its the return code from db2set command.

DB2Set processing complete, rc = -1092 , SQLCODE=0. THis is when i say db2set -g

rc = -4400 , SQLCODE = 0, when i say db2set



Is this some authorization related error.

When I do db2set -all after this , I dont see any of the variable set.

Thanks


Quote:
Originally posted by sathyaram_s
Is it the return code when setting the variables or when creating the procedure ?

Please provide SQLcode and sqlstate messages

Cheers
Sathyaram
Reply With Quote
  #4 (permalink)  
Old 12-16-03, 19:28
venkat_dba venkat_dba is offline
Registered User
 
Join Date: Dec 2003
Posts: 19
Hi Sathyaram,
Whenever i do db2 -td@ -vf filename.db2 , it uses cc as the default compiler. But cc is not installed in my machine. I want to use gcc instead of cc. Thats where i end up in these problems.

Your help is highly appreciated.

thanks
Reply With Quote
  #5 (permalink)  
Old 12-17-03, 19:38
venkat_dba venkat_dba is offline
Registered User
 
Join Date: Dec 2003
Posts: 19
Its working fine

Hi,
I installed CC compiler on the solaris box and its working fine
Quote:
Originally posted by venkat_dba
Hi Sathyaram,
Whenever i do db2 -td@ -vf filename.db2 , it uses cc as the default compiler. But cc is not installed in my machine. I want to use gcc instead of cc. Thats where i end up in these problems.

Your help is highly appreciated.

thanks
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