473,396 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

error PLS-00201:

hi friends,

i hv my plsql block in that i use goto statement in that i got the error above mesion.

my plsql block is


Expand|Select|Wrap|Line Numbers
  1.  
  2. create procedure xyz(abc in number)
  3. as
  4.  
  5. begin
  6.  
  7. IF abc = 0 THEN
  8. GOTO LOOP_1;
  9. END IF;
  10.  
  11. <<LOOP_1>>
  12.  
  13. <select statment>
  14.  
  15. end;
  16.  
  17.  
but in this he give me error that

PLS-00201: identifier 'LOOP_1' must be declared

but for lable there is no declaration so plz give me some solution on this
Dec 4 '07 #1
2 2343
Dave44
153 100+
well hopefully you can find the issue by referencing this:
Expand|Select|Wrap|Line Numbers
  1. DECLARE
  2.        v_num1     NUMBER := 2;
  3.        v_num2     NUMBER := 3;
  4.   BEGIN
  5.        IF v_num1 > v_num2
  6.        THEN
  7.             GOTO loc_1;
  8.        ELSE
  9.             GOTO loc_2;
  10.        END IF;
  11.  
  12.        <<loc_1>>
  13.        DBMS_OUTPUT.put_line('loc_1');
  14.  
  15.        <<loc_2>>
  16.        DBMS_OUTPUT.put_line('loc_2');
  17.   END;
  18.   /
loc_2

PL/SQL procedure successfully completed.

remember that with goto the tag for where it should go to has to be in scope... which limits its usefullness in many ways.
Dec 5 '07 #2
amitpatel66
2,367 Expert 2GB
hi friends,

i hv my plsql block in that i use goto statement in that i got the error above mesion.

my plsql block is


Expand|Select|Wrap|Line Numbers
  1.  
  2. create procedure xyz(abc in number)
  3. as
  4.  
  5. begin
  6.  
  7. IF abc = 0 THEN
  8. GOTO LOOP_1;
  9. END IF;
  10.  
  11. <<LOOP_1>>
  12.  
  13. <select statment>
  14.  
  15. end;
  16.  
  17.  
but in this he give me error that

PLS-00201: identifier 'LOOP_1' must be declared

but for lable there is no declaration so plz give me some solution on this
Hi SAMEER CHAUDHARI,

Welcome To TSDN!!

Please make sure you follow POSTING GUIDELINES every time you POST in this forum.

Thanks
MODERATOR
Dec 6 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
1
by: manish | last post by:
Hi, I am a fresher in the programming field i.e although I have done programming at the basic level but at professional level I am very new and I am facing many problems. These probllems are...
1
by: manish | last post by:
Hi, I am a fresher in the programming field i.e although I have done programming at the basic level but at professional level I am very new and I am facing many problems. These probllems are...
1
by: Shakthi | last post by:
Hi, Pls let me how to solve this error "Specified argument out of range" Pls find the code below and let me know the solution. Public Class viewcart Inherits System.Web.UI.Page Protected...
1
by: zoneal | last post by:
pls let me know where i am going wrong. Dim categories As ArrayList Private Sub LoadCategoryDropDownList() Dim sCat As String For Each sCat In categories ///pls see the error at the bottom of...
4
by: XML newbie: Urgent pls help! | last post by:
I am using VB.Net. My program is to connect to a remote IPAddress. Once, it verifies the login information it should display the SessionID and enable some button . I appreciate your help and thanku...
0
by: sathyakvani | last post by:
hi al i wrote a code (LOgin form) that checks the user id and if it exists validates the password but this is not all validating and simply displaying user does not exist i am sending the code...
5
by: PLS | last post by:
I'm converting some C++ code to VC++ 2005 in native (non-managed) mode. This code doesn't use ATL, but codes the COM mechanisms directly. It has a class which is the equivalent of ATL's...
4
by: S.Tedeschi | last post by:
Hi all guru, for sure I'm too old for a bunch of no-sleep-nights. M$' drivin' me nut. Switching my ASP.NET 1.1 apps to 2.0 has made me tryin' for several days with no success. -My IIS5.1 (Xp...
3
by: ana10192000 | last post by:
import java.util.Random; public class random_game { public static void main (String args) { int ctr,guess; Random r = new Random(); System.int.println(r.input.int(100)); int...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.