View previous topic :: View next topic
|
Author |
Message |
Magna
New User
Joined: 30 Oct 2006 Posts: 24
|
|
|
|
How to find if a stored procedure is a online or online and batch or only batch SP?
Is there is any table which will have this detail.
Just like SYSIBM.SYSPROCEDURES... I found a column in that table PGM_TYPE but donno whether thats the correct column or not.
Please guide me how to find this... |
|
Back to top |
|
|
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
Hi,
As far as column PGM_TYPE in SYSIBM.SYSPROCEDURES is used to indicate whether the program is Main Program or Sub Program.
As valid values are M and S.
And i guess a stored procedure can be triggred either by online or by batch, its my assumption that their is nor column which restricts the usage.
Cheers
Ashwin |
|
Back to top |
|
|
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
Hi,
To make it make it more clear, As i have coded couple of stored Procedures.
And in the real time they used to be triggered by an online devices but as we don't have access to those devices in development we used to test our SP with batch program by passing the values.
I have code only couple of SP's may be my knowledge is limited. May be we will check if any others in forum give better explanation.
Cheers
Ashwin |
|
Back to top |
|
|
satya123 Warnings : 1 New User
Joined: 18 Aug 2006 Posts: 57
|
|
|
|
can any body help me ?????
Do i need to have (collection-id.*) previledge during bandplan???? to run stored proc? |
|
Back to top |
|
|
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
Yes you need to have the privilege on the collection, and this different collections are integrated in Package Privillege.
The privilege required to run the stored procedure package and any packages that are used under the stored procedure is any of the following:
The EXECUTE privilege on the package
Ownership of the package
PACKADM authority for the package’s collection
SYSADM authority
If need more details follow the path
www.redbooks.ibm.com/redbooks/pdfs/sg247083.pdf
Can you send some information as Abend or something which you are facing somthing similar to
PLAN CALDTLSC NOT AUTHORIZED FOR SUBSYSTEM DB2G AND AUTH ID PAOLORW
DSNT408I SQLCODE = -924, ERROR: DB2 CONNECTION INTERNAL ERROR, 0001, 0100,
00F30016
DSNT418I SQLSTATE = 58006 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNAET03 SQL PROCEDURE DETECTING ERROR |
|
Back to top |
|
|
|