Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 27th, 2005, 12:12 PM
TazBon TazBon is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Location: Hong Kong SAR
Posts: 2 TazBon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 47 sec
Reputation Power: 0
Question About CASE Statement

Hi all,

Does anyone know what's wrong of the following code?

CASE SUBSTR(INP_REP_TYPE, 1, 3)
WHEN '100' THEN
WS_H4 := WS_H1;
WS_TEXT_HEAD := SUBSTR(WS_H1, 48, LENGTH(WS_H1));
WHEN '010' THEN
WS_H4 := WS_H2;
WS_TEXT_HEAD := SUBSTR(WS_H2, 52, LENGTH(WS_H2));
WHEN '001' THEN
WS_H4 := WS_H3;
WS_TEXT_HEAD := SUBSTR(WS_H3, 59, LENGTH(WS_H3));
WS_TOTAL_LINE := 'ALL BANKING GROUPS';
END CASE;

After compile, it showed the following error message:

PLS-00103: Encountered the symbol "CASE" when
expecting one of the following:
begin declare end exception exit for goto if loop mod null
pragma raise return select update while <an identifier>

Regards,
TazBon

Reply With Quote
  #2  
Old April 4th, 2005, 08:42 AM
paulh1983 paulh1983 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2004
Posts: 1,239 paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 25 m 28 sec
Reputation Power: 17
is that the full code?

have u got begin somewhere?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > About CASE Statement


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway