Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

overridding using cond condition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: overridding using cond condition
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    Post subject:
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    Post subject: Re: overridding using cond condition
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Re: overridding using cond condition
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    Post subject:
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    Post subject: Re: overridding using cond condition
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    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. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm
No new posts 2 vsam file compare and update a fiel... ABINAYATHULASI DFSORT/ICETOOL 6 Sun May 29, 2016 11:15 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us