Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Pass cond parameter to proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Pass cond parameter to proc
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    Post subject: Reply to: pass cond parameter to proc
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: 1439
Location: Bangalore,India

PostPosted: Mon Sep 10, 2007 12:11 pm    Post subject:
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    Post subject: Re: Reply to: pass cond parameter to proc
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Mon Sep 10, 2007 12:45 pm    Post subject:
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: 686
Location: Earth

PostPosted: Mon Sep 10, 2007 12:55 pm    Post subject:
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    Post subject:
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: 686
Location: Earth

PostPosted: Mon Sep 10, 2007 3:32 pm    Post subject:
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    Post subject:
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    Post subject:
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: 686
Location: Earth

PostPosted: Mon Sep 10, 2007 4:24 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us