IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to find a Stored Procedure is online/batch?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Magna

New User


Joined: 30 Oct 2006
Posts: 24

PostPosted: Fri Mar 09, 2007 3:01 pm
Reply with quote

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
View user's profile Send private message
ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Tue Apr 10, 2007 12:19 pm
Reply with quote

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
View user's profile Send private message
ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Tue Apr 10, 2007 12:31 pm
Reply with quote

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
View user's profile Send private message
satya123
Warnings : 1

New User


Joined: 18 Aug 2006
Posts: 57

PostPosted: Thu Aug 02, 2007 2:43 pm
Reply with quote

can any body help me ?????

Do i need to have (collection-id.*) previledge during bandplan???? to run stored proc?
Back to top
View user's profile Send private message
ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Thu Aug 02, 2007 7:13 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top