Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to find a Stored Procedure is online/batch?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to find a Stored Procedure is online/batch?
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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

http://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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Batch job tuning sgandhla Testing & Performance analysis 0 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us