473,546 Members | 2,244 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't browse stored procedure in Navigator


I created a stored procedure called MANLIB.MAN535CL based on a CL/COBOL
program.

I know it works because I can run it successfully.
However, I don't really understand where it is on the iSeries.

For example, if I use Navigator to browse the "Databases" section, there
is one database, s10cd4b. Under that is the "schemas" section which
has QGPL and QTEMP and under those is "Procedures ". There are no
entries under either of those?

So, is the stored procedure on the IFS?

Or somewhere else?
--
Texeme Construct
http://www.myspace.com/texeme

Aug 18 '06 #1
10 2994
Right-Click on Schemas and click on "Select schemas to display" and add
MANLIB to it. Now drill down to MANLIB Stored Procedures and you
should see it.

Stored procedure definitions can also be seen by doing:

SELECT * FROM SYSPROCS

John Bailo wrote:
I created a stored procedure called MANLIB.MAN535CL based on a CL/COBOL
program.

I know it works because I can run it successfully.
However, I don't really understand where it is on the iSeries.

For example, if I use Navigator to browse the "Databases" section, there
is one database, s10cd4b. Under that is the "schemas" section which
has QGPL and QTEMP and under those is "Procedures ". There are no
entries under either of those?

So, is the stored procedure on the IFS?

Or somewhere else?
--
Texeme Construct
http://www.myspace.com/texeme
Aug 18 '06 #2
John Bailo wrote:
>
I created a stored procedure called MANLIB.MAN535CL based on a CL/COBOL
program.

I know it works because I can run it successfully.
However, I don't really understand where it is on the iSeries.

For example, if I use Navigator to browse the "Databases" section, there
is one database, s10cd4b. Under that is the "schemas" section which
has QGPL and QTEMP and under those is "Procedures ". There are no
entries under either of those?

So, is the stored procedure on the IFS?

Or somewhere else?
If you didn't register your program to DB2 with the
CREATE PROCEDURE (EXTERNAL) statement, you're not going
to see it as a procedure using Navigator.
Aug 19 '06 #3
John Bailo wrote:
>
I created a stored procedure called MANLIB.MAN535CL based on a CL/COBOL
program.

I know it works because I can run it successfully.
However, I don't really understand where it is on the iSeries.

For example, if I use Navigator to browse the "Databases" section, there
is one database, s10cd4b. Under that is the "schemas" section which
has QGPL and QTEMP and under those is "Procedures ". There are no
entries under either of those?
You need to add MANLIB to the list of schemas under
Databases.

1. Expand the Databases folder, then the Schemas
(called Libraries if you're a V5R2 or lower).
2. Right click on Schemas/Libraries, then select
Select New Schemas/Libraries to Display.
3. In the Enter Schemas/Libraries enter MANLIB and
click Add, then click OK.
4. MANLIB should now appear in your list of schemas/
libraries, and you should be able to find your
procedure.

So, is the stored procedure on the IFS?

Or somewhere else?

Aug 19 '06 #4
Jonathan Ball wrote:
You need to add MANLIB to the list of schemas under Databases.
THANK YOU!

That worked instantly.
>
1. Expand the Databases folder, then the Schemas
(called Libraries if you're a V5R2 or lower).
2. Right click on Schemas/Libraries, then select
Select New Schemas/Libraries to Display.
3. In the Enter Schemas/Libraries enter MANLIB and
click Add, then click OK.
4. MANLIB should now appear in your list of schemas/
libraries, and you should be able to find your
procedure.

--
Texeme Construct
http://www.myspace.com/texeme

Aug 20 '06 #5
John Bailo wrote:
Jonathan Ball wrote:
>You need to add MANLIB to the list of schemas under Databases.
This is great.

Not only can I see my sprocs now -- but another thing I have been
puzzling about is ALIASES. I create a lot of alias in order to be able
to use SQL to work with multimember files in the IFS. I can see them
all in the Aliases section of Schemas in Navigator!

>
THANK YOU!

That worked instantly.
>>
1. Expand the Databases folder, then the Schemas
(called Libraries if you're a V5R2 or lower).
2. Right click on Schemas/Libraries, then select
Select New Schemas/Libraries to Display.
3. In the Enter Schemas/Libraries enter MANLIB and
click Add, then click OK.
4. MANLIB should now appear in your list of schemas/
libraries, and you should be able to find your
procedure.



--
Texeme Construct
http://www.myspace.com/texeme

Aug 20 '06 #6
Jonathan Ball wrote:
If you didn't register your program to DB2 with the CREATE PROCEDURE
(EXTERNAL) statement, you're not going to see it as a procedure using
Navigator.
That's exactly how I created it.

As background, what I did was take someones CL/COBOL and use a CREATE
PROCEDURE from it. At that point, I can call it from the iDB .NET
provider.

I then wrote a web service that lets us interface with an OS400 COBOL
program and it can now be used companywide in any of our offices!
--
Texeme Construct
http://www.myspace.com/texeme

Aug 20 '06 #7
Elvis wrote:
Right-Click on Schemas and click on "Select schemas to display" and add
MANLIB to it. Now drill down to MANLIB Stored Procedures and you
should see it.
This process, which you and another poster suggested, worked perfectly.

Thank you.
>
Stored procedure definitions can also be seen by doing:

SELECT * FROM SYSPROCS
Could it be I don't have enough permissions for this?

Connected to relational database S10dcd4b on 192.168.1.43 as Jbailo -
073480/Quser/Qzdasoinit
SELECT * FROM SYSPROCS
SQL State: 42704
Vendor Code: -204
Message: [SQL0204] SYSPROCS in JBAILO type *FILE not found. Cause . . .
.. . : SYSPROCS in JBAILO type *FILE was not found. If this is an ALTER
TABLE statement and the type is *N, a constraint or partition was not
found. If this is not an ALTER TABLE statement and the type is *N, a
function, procedure, or trigger was not found. If a function was not
found, SYSPROCS is the service program that contains the function. The
function will not be found unless the external name and usage name do
not match exactly. Examine the job log for a message that gives more
details on which function name is being searched for and the name that
did not match. Recovery . . . : Change the name and try the request
again. If the object is a node group, ensure that the DB2 Multisystem
product is installed on your system and create a nodegroup with the
CRTNODGRP CL command. If an external function was not found, be sure
that the case of the EXTERNAL NAME on the CREATE FUNCTION statement
exactly matches the case of the name exported by the service program.

Processing ended because the highlighted statement did not complete
successfully

--
Texeme Construct
http://www.myspace.com/texeme

Aug 21 '06 #8
It's in QSYS2 library, as are other catalogue views. For SQL naming
you can qualify it like this:

SELECT * FROM QSYS2.SYSPROCS

John Bailo wrote:
Elvis wrote:
Right-Click on Schemas and click on "Select schemas to display" and add
MANLIB to it. Now drill down to MANLIB Stored Procedures and you
should see it.

This process, which you and another poster suggested, worked perfectly.

Thank you.

Stored procedure definitions can also be seen by doing:

SELECT * FROM SYSPROCS

Could it be I don't have enough permissions for this?

Connected to relational database S10dcd4b on 192.168.1.43 as Jbailo -
073480/Quser/Qzdasoinit
SELECT * FROM SYSPROCS

SQL State: 42704
Vendor Code: -204
Message: [SQL0204] SYSPROCS in JBAILO type *FILE not found. Cause . . .
. . : SYSPROCS in JBAILO type *FILE was not found. If this is an ALTER
TABLE statement and the type is *N, a constraint or partition was not
found. If this is not an ALTER TABLE statement and the type is *N, a
function, procedure, or trigger was not found. If a function was not
found, SYSPROCS is the service program that contains the function. The
function will not be found unless the external name and usage name do
not match exactly. Examine the job log for a message that gives more
details on which function name is being searched for and the name that
did not match. Recovery . . . : Change the name and try the request
again. If the object is a node group, ensure that the DB2 Multisystem
product is installed on your system and create a nodegroup with the
CRTNODGRP CL command. If an external function was not found, be sure
that the case of the EXTERNAL NAME on the CREATE FUNCTION statement
exactly matches the case of the name exported by the service program.

Processing ended because the highlighted statement did not complete
successfully

--
Texeme Construct
http://www.myspace.com/texeme
Aug 21 '06 #9
Elvis wrote:
It's in QSYS2 library, as are other catalogue views. For SQL naming
you can qualify it like this:

SELECT * FROM QSYS2.SYSPROCS
Nice, thank you.

It worked like a charm!
Aug 21 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8279
by: Elham GH | last post by:
Hi there How can I debug Stored Procedure? Thanks
4
13460
by: marc | last post by:
I've been developing a stored procedure that uses a user defined function in the query portion of the procedure. However, since the end product needs to allow for dynamic table names, the UDF will not work. I've been trying to get this to work with converting the UDF to a procedure, but I'm having no luck. Here is the background on what I'm...
11
3470
by: ColdCanuck | last post by:
Greetings! I am VERY new to DB2 but not Orable, Sybase and SQL Server. I am trying to call a stored procedure via VB 6 and ADO/OLEDB. But when I try to execute
6
6738
by: Wojciech Wendrychowicz | last post by:
Hello to All, I'm trying to retrieve records from AS/400 in an VBA application. So, I've made an RPG program, then a stored procedure wchich calls that RPG program, and finally some VBA code to call the stored procedure and retrieve data from AS/400. The problem is, that when I finally run my VB code, it just hangs. But when I call the same...
0
2633
by: Amber | last post by:
Stored procedures are faster and more efficient than in-line SQL statements. In this article we will look at two SQL Server stored procedures; one using an input parameter and one not, and see how to call them from an ASP.Net page Every modern database system has a stored procedure language. SQL Server is no different and has a relatively...
6
9232
by: Gordowey | last post by:
Where can I find this DIV effect. go to: http://www.amazon.com Put mouse over the text "See All 32 Product Categories" (Top-Middle)..it will open a window with a cool effect... does anyone know where to find a script with this effect.... thanks
24
2408
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How can I see in javascript if a web browser accepts cookies? ----------------------------------------------------------------------- Writing a cookie, reading it back and checking if it's the same. http://www.w3schools.com/js/js_cookies.asp Additional...
0
1524
by: Pkid | last post by:
Hi I am using DB2 on the iSeries. I create a SQL Stored procedure in iSeries Navigator by running a sql script. The declaration of the procedure is as follows: CREATE PROCEDURE Andrew.GetLargestFreeBlock( IN filename CHAR(10), IN surrogatename CHAR(10)) LANGUAGE SQL
0
3157
by: SOI_0152 | last post by:
Hi all! Happy New Year 2008. Il hope it will bring you love and happyness I'm new on this forum. I wrote a stored procedure on mainframe using DB2 7.1.1 and IBM language c. Everything works fine. Now we decided to move from mainframe IMS-DB2 to Windows 2003 server-DB2 UDB for LUW 9.5.
0
7435
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7947
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7461
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7794
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5361
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3492
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3472
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1922
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.