View previous topic :: View next topic |
Author |
Message |
issac1029 Intermediate

Joined: 10 Dec 2005 Posts: 159 Topics: 75
|
Posted: Tue Mar 14, 2006 7:55 am Post subject: How to make a jcl have a pgm run with 3 different plan? |
|
|
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 |
|
 |
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Tue Mar 14, 2006 8:21 am Post subject: |
|
|
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 |
|
 |
issac1029 Intermediate

Joined: 10 Dec 2005 Posts: 159 Topics: 75
|
Posted: Wed Mar 15, 2006 2:17 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Mar 15, 2006 8:12 am Post subject: |
|
|
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 |
|
 |
issac1029 Intermediate

Joined: 10 Dec 2005 Posts: 159 Topics: 75
|
Posted: Wed Mar 15, 2006 9:19 am Post subject: |
|
|
SureshKumar,kolusu,
Sorry~
That P2(bind plan Y) and P3(bind plan Z) |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Mar 15, 2006 9:25 am Post subject: |
|
|
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 |
|
 |
raam_narayan Beginner
Joined: 28 Apr 2006 Posts: 12 Topics: 2
|
Posted: Wed May 03, 2006 5:17 am Post subject: |
|
|
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 |
|
 |
|
|