Question

Asked on 2009-08-07 at 10:52:40ID: 25489204

ORACLE - STORE PROCEDURE Declaration problem : PLS-00103: Encountered the symbol "(" when expecting one of the following

by: DDB500

Rating6.6Good

I am getting following errors:
Compilation errors for PROCEDURE APP.GETSTEXT

Error: PLS-00103: Encountered the symbol "(" when expecting one of the following:
       
          := ) , default varying character large
       The symbol ":=" was substituted for "(" to continue.
Line: 2
Text: (RMC                      IN CHAR(2) ,

Error: PLS-00103: Encountered the symbol "(" when expecting one of the following:
       
          := ) , default varying character large
       The symbol ":=" was substituted for "(" to continue.
Line: 4
Text: Claim_Form                IN CHAR(1),

Error: PLS-00103: Encountered the symbol "(" when expecting one of the following:
       
          := ) , default varying character large
       The symbol ":=" was substituted for "(" to continue.
Line: 5
Text: ICD_Proc_Code             IN CHAR(4),

Error: PLS-00103: Encountered the symbol "(" when expecting one of the following:
       
          := . ) , @ % default character
       The symbol ":=" was substituted for "(" to continue.
Line: 6
Text: Proc_Code                 IN VARCHAR2(5),

Error: PLS-00103: Encountered the symbol "(" when expecting one of the following:
       
          := ) , default varying character large
       The symbol ":=" was substituted for "(" to continue.
Line: 7
Text: Modifier_Code             IN CHAR(2),

Error: PLS-00103: Encountered the symbol "(" when expecting one of the following:
       
          := ) , default varying character large
       The symbol ":=" was substituted for "(" to continue.
Line: 8
Text: Revenue_Code              IN CHAR(3),

Error: PLS-00103: Encountered the symbol "(" when expecting one of the following:
       
          := . ) , @ % default character
Line: 9
Text: ICDDiagnosis_Code         IN VARCHAR2(5) := NULL,


CREATE OR REPLACE PROCEDURE getTEST
  (RMC                      IN CHAR(2) , 
  Service_Date              IN DATE , 
  Claim_Form                IN CHAR(1), 
  ICD_Proc_Code             IN CHAR(4), 
  Proc_Code                 IN VARCHAR2(5), 
  Modifier_Code             IN CHAR(2), 
  Revenue_Code              IN CHAR(3), 
  ICDDiagnosis_Code         IN VARCHAR2(5) := NULL, 
  TypeBill_Code             IN CHAR(3) := NULL, 
  PlaceTreatment_Code       IN NUMBER(2) := NULL,
  ProvCat_Code              IN CHAR(4) := NULL,
  ServiceCat_Code           OUT VARCHAR2(10)) AS
   
   
   
RMCGrpCd CHAR(2);
 
                                                                                                                                                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                                                                                                                             
BEGIN
 
...
 
END getTEST
                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:

Select allOpen in new window

  1. PLS-00103: Encountered the symbol ")…
    i have the following procedure, can anyone tell me what's wrong? create or replace PROCEDURE ABC() BEGIN DECLARE policyid CHAR(36); FOR c AS cur1 CURSOR FOR select policy from policy where policy not in (select t1.policy from policy t1, policyfield t2 where t1.policy = t2.policy and t2.fieldname = 'R…
  2. PLS-00103: Encountered the symbol "UI_…
    I go the following error when run a procedure. I post the run code also. Please help. Thanks. ERROR at line 4: ORA-06550: line 4, column 6: PLS-00103: Encountered the symbol "UI_PKG" when expecting one of the following: := . ( @ % ; The symbol ":=" was substituted for "UI…
  3. procedure execute- Error
    create or replace PROCEDURE send_test_message IS mailhost VARCHAR2(64) := 'hbc-gray.heartlandbc.org'; sender VARCHAR2(64) := 'adwaram@heartlandbc.org'; recipient VARCHAR2(64) := 'adwaram@heartlandbc.org'; mail_conn utl_smtp.connection; BEGIN mail_conn :…
  4. PLS-00103:
    Is my if statement below illegal? I get this error PLS-00103: Encountered the symbol "AND" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a
  5. PLS-00103: Encountered the symbol  "ROW"
    How can I solve this error? Error(16,10): PLS-00103: Encountered the symbol "ROW" when expecting one of the following: in Is there anything else wrong? Thank you

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution
View This Solution - Start Your 30 Day Free Trial
Zone
General
Tags
Participating Experts
1
Solution Grade
A

Replies

 by: sdstuber

Posted on 2009-08-07 at 10:55:40ID: 28403997

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: DDB

Posted on 2009-08-07 at 10:57:23ID: 28403998

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sdstuber

Posted on 2009-08-07 at 11:09:37ID: 28403999

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: DDB

Posted on 2009-08-07 at 11:18:50ID: 28404000

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sdstuber

Posted on 2009-08-07 at 11:22:55ID: 28404001

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sdstuber

Posted on 2009-08-07 at 11:28:00ID: 28404002

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sdstuber

Posted on 2009-08-07 at 11:28:52ID: 28404003

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: DDB

Posted on 2009-08-07 at 11:31:38ID: 28404004

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sdstuber

Posted on 2009-08-07 at 11:35:11ID: 28404005

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sdstuber

Posted on 2009-08-07 at 11:36:23ID: 28404006

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: DDB

Posted on 2009-08-07 at 11:56:28ID: 28404007

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by:

Posted on 2009-08-07 at 12:01:17ID: 28404008

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sdstuber

Posted on 2009-08-07 at 12:03:01ID: 28404009

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: DDB

Posted on 2009-08-07 at 12:05:36ID: 28404010

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sdstuber

Posted on 2009-08-07 at 12:13:32ID: 28404011

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Stay Connected

Oracle Around the Web

The latest Oracle news, tips, and tricks

Oracle Unveils Netra SPARC T3 Servers

New Carrier-Grade Blade and Rackmount Servers Deliver Better Performance, Density and Power Efficiency for the Communications Industry ...

read more

Oracle fixes 21 flaws in Java SE, Java for Business

Oracle is fixing 21 flaws in its Java SE and Java for Business products in its February critical patch update issued this week ...

read more

Obama’s Silicon Valley “Tech Supper”

Why was he there? Who wasn’t invited and why? What did they talk about? Why was he really there? These are the questions being debated ...

read more

Featured Oracle Experts

slightwv

slightwv has answered more than 2,000 Oracle questions and oversees database management within the U.S. Government. Slightwv

sdstuber

A regular presenter at the Collaborate conference, Oracle developer sdstuber is a top expert in PL/SQL and Oracle 9, 10 and 11. sdstuber

Testimonials

What users are saying about our experts

"The Oracle gurus provide answers, solutions and valuable workarounds"

User: schwertner

"Wow! Excellent, valuable explanation. Hats off to you"

User: aseshu70

"Solution worked fantastic and performs excellent! Thanks heaps"

User: klausbrandlhuber

Top Experts

  1. slightwv

    2,000

    0 points yesterday

    Profile

BrowseBecome an Expert