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 > Problem with "WLM ENVIRONMENT SAMP1" line

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-07-07, 23:43
rameshjs rameshjs is offline
Registered User
 
Join Date: Jul 2007
Posts: 2
Problem with "WLM ENVIRONMENT SAMP1" line

Dear Ones

I have created belowmentioned routine using DB2 v9.1 LUW

CREATE PROCEDURE UPDATE_SALARY
(IN EMPLOYEE_NUMBER CHAR(10),
IN RATE DECIMAL(6,2))
LANGUAGE SQL
WLM ENVIRONMENT SAMP1
COMMIT ON RETURN YES
IF RATE <= 0.50
THEN UPDATE EMP
SET SALARY = SALARY * RATE
WHERE EMPNO = EMPLOYEE_NUMBER;
ELSE UPDATE EMP
SET SALARY = SALARY * 0.50
WHERE EMPNO = EMPLOYEE_NUMBER;
END IF

And getting the error on below mentioned lines. Could u please tell me what was wrong in the code

WLM ENVIRONMENT SAMP1
COMMIT ON RETURN YES

I would like to know the usage of WLM ENVIRONMENT

Note: Code execution is fine, after removing the two line

Regards
Ramesh
Reply With Quote
  #2 (permalink)  
Old 08-08-07, 08:16
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Exactly which error message did you get?
Do you have WLM installed on your system? If not, then you can't use WLM.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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