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

overridding using cond condition


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

New User


Joined: 23 Dec 2005
Posts: 61
Location: Providence , US

PostPosted: Fri Jan 13, 2006 5:25 pm
Reply with quote

HI all,

There is a problem which i am facing :

I have a proc having many steps around 6 , and some step names are same as given below :

proc :

step1

step4

step2

step4

step3

step4 ....

now in job step1,step2 and step3 will give return code 16 as it is along with creating file will populate a db2 table , which is already populated by my prior run , thus i don't want to change the data in the table as it is being reviewed at the moment by my other team , but i need the files for my other tests .

Thus while overridding in my job :
i thought of using cond.stepname=(16,lt) override in my job for stepname but as the stepnames are same ,i am unable to do it ?

i got this proc from a diff vendor thus i won't be able to edit these proc's .

is there a way that through jcl we can override using these sort of step names?
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Sun Jan 15, 2006 12:15 am
Reply with quote

It's a really problem if you cannot change the name of the steps in your proc.
I suggest you to copy the proc in another library and change the name of the steps.
So use the jcllib or proc pend in your job.

I hope in this suggest.
Back to top
View user's profile Send private message
saithvis2

New User


Joined: 23 Dec 2005
Posts: 61
Location: Providence , US

PostPosted: Mon Jan 16, 2006 11:16 am
Reply with quote

Hi Mgindaco,

I did the same and got my work done . Thanks for the advice.
But is there a way we can do it by overriding the cond condition (i am just asking for knowledge sake) , because normally we have proc's with different step names and this proc which we got from a different vendor is for one time use , may be because of that they have not followed the usual practises .

Thanks once again .

Regards
Vishal
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Mon Jan 16, 2006 1:47 pm
Reply with quote

I don't think that you will find another solution of this problem. Even the jcl reference say that (it say i.e. for restart or to apply an override) stepname(and procstepname) must be unique within the job.

If you will find other than this let me know.
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Mon Jan 16, 2006 2:15 pm
Reply with quote

hi all,
u can override the cond parameter in step in proc using

procname.stepname dd cond =(16,lt)

this has to be coded in the step where u r executing the proc

this should work i think


regards
balaji
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Mon Jan 16, 2006 2:22 pm
Reply with quote

i am sorry it is
//procstep dd exec proc1 cond.stepname = value


thanks
balaji
Back to top
View user's profile Send private message
saithvis2

New User


Joined: 23 Dec 2005
Posts: 61
Location: Providence , US

PostPosted: Mon Jan 16, 2006 2:42 pm
Reply with quote

Hi Balaji,

Thanks for the advice but here the stepnames are same so how will it recognize which stepname it is referring to ?

Thus , in my view MGIndaco is correct and there can't be any other solution to Cond condition or for that matter Restart condition .

Please rectify me if i am wrong .

Regards
Vishal
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Wed Jan 18, 2006 10:51 am
Reply with quote

Hi sathis,

i am sorry i was thinking u r having one step outside the proc and other one inside the proc.
if both the step are inside the same proc then we are helpless.
but in any way u will get warning message if u have two same stepnames

best solution would be take a local copy and change the stepname



thanks
balaji
Back to top
View user's profile Send private message
saithvis2

New User


Joined: 23 Dec 2005
Posts: 61
Location: Providence , US

PostPosted: Wed Jan 18, 2006 11:39 am
Reply with quote

Hi Balaji,

Yes i did the same and changed the stepnames , as there seems to be no other solution to this .

Thanks .


Regards
Vishal
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 Reference for COND parameter. JCL & VSAM 1
No new posts IEF142I and Cond. Code 12 All Other Mainframe Topics 3
No new posts How to give complex condition in JCL . CLIST & REXX 30
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
Search our Forums:

Back to Top