MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to make a jcl have a pgm run with 3 different plan?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Tue Mar 14, 2006 7:55 am    Post subject: How to make a jcl have a pgm run with 3 different plan? Reply with quote

Is it possible to run a pgm with three plan?

PGM A CALL PGM B AND PGM C
How should I specify the other two plan for the other 2 subpgm?With IKJEFT01?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue Mar 14, 2006 8:21 am    Post subject: Reply with quote

issac1029 ,
Yes, but it depends on the requirement and how the system is set-up. Most often, programs are bound to all plans/collections. It's the data that is outside the plan and package switching can be done in the program itself by using the Current Packageset. However, the solution depends on the requirement - your message is too ambigious to give a solution. Thanks
Back to top
View user's profile Send private message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Wed Mar 15, 2006 2:17 am    Post subject: Reply with quote

SureshKumar,

Now I run db2 program using IKJEFT01,WRITE SYSTIN LIKE FOLLOWS:
******************
DSN SYSTEM(DB2A)
RUN PROGRAM(P1) PLAN(X)
******************
suppose the system support this kind of use.If I want to run P1(bind plan X),and P1 call two subpgm:P2(bind plan X) and P3(bind plan X),How to write the jcl ?Only modify the SYSTIN?

By the way I am also insterest in how to set-up the system,any links about this?thanks
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Mar 15, 2006 8:12 am    Post subject: Reply with quote

issac1029,

You will have only have ONE PLAN per application . The 2 sub programs will be using packages which will be bound as a single Plan for the main program.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Wed Mar 15, 2006 9:19 am    Post subject: Reply with quote

SureshKumar,kolusu,


Sorry~

That P2(bind plan Y) and P3(bind plan Z)
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Mar 15, 2006 9:25 am    Post subject: Reply with quote

issac1029,

Once again you CANNOT have more than 1 plan per application. you need to create a packages for p2 and p3 and bind them in plan of P1.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
raam_narayan
Beginner


Joined: 28 Apr 2006
Posts: 12
Topics: 2

PostPosted: Wed May 03, 2006 5:17 am    Post subject: Reply with quote

Hi Isaac.
As Kolusu has stated, there should be and there can be only one PLAN for any one single application.. There cannot be more than ONE PLAN for a given single application / program.. The Sub routines or the called programs in ur case that is P2 & P3 has gotta be BINDED seperately and put into the PLAN which would be automatically done thru the BINDING process... pls revert back in case of any issue....

Thanks & Regards,
V.Ram NArayan
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group