View previous topic :: View next topic
|
Author |
Message |
saithvis2
New User
Joined: 23 Dec 2005 Posts: 61 Location: Providence , US
|
|
|
|
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 |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
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 |
|
|
saithvis2
New User
Joined: 23 Dec 2005 Posts: 61 Location: Providence , US
|
|
|
|
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 |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
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 |
|
|
sbalajibe
New User
Joined: 15 Aug 2005 Posts: 62
|
|
|
|
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 |
|
|
sbalajibe
New User
Joined: 15 Aug 2005 Posts: 62
|
|
|
|
i am sorry it is
//procstep dd exec proc1 cond.stepname = value
thanks
balaji |
|
Back to top |
|
|
saithvis2
New User
Joined: 23 Dec 2005 Posts: 61 Location: Providence , US
|
|
|
|
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 |
|
|
sbalajibe
New User
Joined: 15 Aug 2005 Posts: 62
|
|
|
|
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 |
|
|
saithvis2
New User
Joined: 23 Dec 2005 Posts: 61 Location: Providence , US
|
|
|
|
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 |
|
|
|