View previous topic :: View next topic
|
Author |
Message |
Gursharan Khalsa
New User
Joined: 04 Sep 2007 Posts: 33 Location: Salinas
|
|
|
|
hoe to pass cond parameter to proc through jcl, so that it is applicable to all the steps in proc |
|
Back to top |
|
|
hborse
New User
Joined: 06 Feb 2007 Posts: 1 Location: noida
|
|
|
|
We can apply this as Stepname.Cond=new value
if i m wrong pls correct me |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Gursharan ,
Quote: |
hoe to pass cond parameter to proc through jcl, so that it is applicable to all the steps in proc |
If your job doesn't call anyother proc/prog other than this proc, use COND parmeter in the job card itself. |
|
Back to top |
|
|
Gursharan Khalsa
New User
Joined: 04 Sep 2007 Posts: 33 Location: Salinas
|
|
|
|
hborse wrote: |
We can apply this as Stepname.Cond=new value
if i m wrong pls correct me |
it works, but for a single step only.i want for all the steps in the proc. |
|
Back to top |
|
|
Gursharan Khalsa
New User
Joined: 04 Sep 2007 Posts: 33 Location: Salinas
|
|
|
|
murmohk1 wrote: |
Gursharan ,
Quote: |
hoe to pass cond parameter to proc through jcl, so that it is applicable to all the steps in proc |
If your job doesn't call anyother proc/prog other than this proc, use COND parmeter in the job card itself. |
ok,that will do,but what if the job calls two procs for that mater? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Gursharan,
Quote: |
but what if the job calls two procs for that mater? |
Code on the exec statements. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
From the manuals..
Quote: |
16.5.5 On EXEC Statement that Calls a Procedure
The COND parameter on an EXEC statement that calls a cataloged or in-stream procedure (a calling EXEC statement) will either override or is added to the called EXEC statements.
The COND on the calling EXEC statement overrides the COND on the called EXEC statement. If the called EXEC statement does not have COND coded on it, the COND on the calling EXEC statement will be added to the called EXEC statement. |
Does that answer your question? |
|
Back to top |
|
|
Gursharan Khalsa
New User
Joined: 04 Sep 2007 Posts: 33 Location: Salinas
|
|
|
|
murmohk1 wrote: |
Gursharan,
Quote: |
but what if the job calls two procs for that mater? |
Code on the exec statements. |
i didnt quite get that.could u clarify a bit. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
EXEC statements = EXEC PGM statements.
Exec calls = EXEC proc statements. |
|
Back to top |
|
|
Gursharan Khalsa
New User
Joined: 04 Sep 2007 Posts: 33 Location: Salinas
|
|
|
|
agkshirsagar wrote: |
EXEC statements = EXEC PGM statements.
Exec calls = EXEC proc statements. |
THEORITACLY I SOMEWHAT GOT UR FIRST ANSWER, BUT I M SORRY
I M NOT GETING THIS ONE |
|
Back to top |
|
|
Gursharan Khalsa
New User
Joined: 04 Sep 2007 Posts: 33 Location: Salinas
|
|
|
|
agkshirsagar wrote: |
From the manuals..
Quote: |
16.5.5 On EXEC Statement that Calls a Procedure
The COND parameter on an EXEC statement that calls a cataloged or in-stream procedure (a calling EXEC statement) will either override or is added to the called EXEC statements.
The COND on the calling EXEC statement overrides the COND on the called EXEC statement. If the called EXEC statement does not have COND coded on it, the COND on the calling EXEC statement will be added to the called EXEC statement. |
Does that answer your question? |
THANX I GOT IT. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
I am happy that it helped you.. |
|
Back to top |
|
|
|