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

Related to RUN command !!


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

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Wed Jun 02, 2010 8:26 pm
Reply with quote

Hi ,

The syntax of RUN cmd is
RUN(program name) plan(name) library(libraryname)

Now my question is if suppose I am using DSNTIAD program and I dont know what plan name is associated with it and I want to use it in create a table.
Will the DSNTIAD will automatically call its associated plan name ? I know plan name is optional part. How do we know what plans are associated with a program?

Some basic queries will be obilized if get some ref link for reading?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jun 02, 2010 8:36 pm
Reply with quote

This kind of thing is site dependent.
the site dba's set up the plannames, and the libraries.

i have always asked the dba's what plan should an application programmer use when using DSNTIAD or any other db2 utility.

never had a problem receiving accurate info.

I have never had to search through the sysibm.... tables to determine pgm/plan name relationships,
but I am sure some one on the board can provide you the sql necessary.
But you may try to use a plan name that you have no authority for.
which means another look at the sysibm... tables to determine which plans you have authority to execute.

as far as links:

Finding the most current DB2 documentation and answers to other documentation questions

DB2 database product documentation

the above will point you in the right direction for absolute URL's of
any db2 document, which you can bookmark in your browser,
if you don't want to download the doc.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu Jun 03, 2010 2:37 pm
Reply with quote

Code:
select name,pdsname,plname
from sysibm.sysdbrm where name = 'DSNTIAD'


gives me :

Code:
DSNTIAD DB2.V8R1M0.DBRMLIB.DATA DSNTIA81
DSNTIAD DB2.V9R1M0.DBRMLIB.DATA DSNTIAD
Back to top
View user's profile Send private message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Tue Jun 08, 2010 1:04 pm
Reply with quote

thanks icon_smile.gif
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top