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

Pass cond parameter to proc


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Gursharan Khalsa

New User


Joined: 04 Sep 2007
Posts: 33
Location: Salinas

PostPosted: Mon Sep 10, 2007 11:46 am
Reply with quote

hoe to pass cond parameter to proc through jcl, so that it is applicable to all the steps in proc
Back to top
View user's profile Send private message
hborse

New User


Joined: 06 Feb 2007
Posts: 1
Location: noida

PostPosted: Mon Sep 10, 2007 12:04 pm
Reply with quote

We can apply this as Stepname.Cond=new value
if i m wrong pls correct me
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Sep 10, 2007 12:11 pm
Reply with quote

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
View user's profile Send private message
Gursharan Khalsa

New User


Joined: 04 Sep 2007
Posts: 33
Location: Salinas

PostPosted: Mon Sep 10, 2007 12:20 pm
Reply with quote

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
View user's profile Send private message
Gursharan Khalsa

New User


Joined: 04 Sep 2007
Posts: 33
Location: Salinas

PostPosted: Mon Sep 10, 2007 12:24 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Sep 10, 2007 12:45 pm
Reply with quote

Gursharan,

Quote:
but what if the job calls two procs for that mater?


Code on the exec statements.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Sep 10, 2007 12:55 pm
Reply with quote

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
View user's profile Send private message
Gursharan Khalsa

New User


Joined: 04 Sep 2007
Posts: 33
Location: Salinas

PostPosted: Mon Sep 10, 2007 2:10 pm
Reply with quote

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
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Sep 10, 2007 3:32 pm
Reply with quote

EXEC statements = EXEC PGM statements.
Exec calls = EXEC proc statements.
Back to top
View user's profile Send private message
Gursharan Khalsa

New User


Joined: 04 Sep 2007
Posts: 33
Location: Salinas

PostPosted: Mon Sep 10, 2007 3:41 pm
Reply with quote

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
View user's profile Send private message
Gursharan Khalsa

New User


Joined: 04 Sep 2007
Posts: 33
Location: Salinas

PostPosted: Mon Sep 10, 2007 3:45 pm
Reply with quote

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
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Sep 10, 2007 4:24 pm
Reply with quote

I am happy that it helped you.. 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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
Search our Forums:

Back to Top