View previous topic :: View next topic
|
Author |
Message |
chenchi
New User
Joined: 10 Jun 2004 Posts: 12 Location: Bangalore,India
|
|
|
|
i am calling a procedure within a job.that procedure has 6 steps and the 4th step contains a condition.i want to execute that entire procedure (including the 4th step by nullifing that condition)...how..? |
|
Back to top |
|
|
bluebird
Active User
Joined: 03 Feb 2004 Posts: 127
|
|
|
|
I think that the condition is raised with previous steps' return code.
you can try to force the return code ..
or modify the proc.
what do u mean by nullifying 4th step ? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Can you include the code for the PROC, especially the fourth step? The solution depends on the format used. |
|
Back to top |
|
|
chenchi
New User
Joined: 10 Jun 2004 Posts: 12 Location: Bangalore,India
|
|
|
|
hi
here we r not nullifying the 4th step ...we have to nullify the condition included in the 4th step..i.e condition should not take part in the execution. |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
what is that condition you need to nullify there. Better you give the 4th step and the condition. So that it will be clear. |
|
Back to top |
|
|
chenchi
New User
Joined: 10 Jun 2004 Posts: 12 Location: Bangalore,India
|
|
|
|
here suppose we want to call that procedure from another job that time if we don't want that condition and we want to execute all the 6 steps ...that time we need to nullify the condition. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Chenchi,
Why can't you JUST provide the ***JCL*** ????????? |
|
Back to top |
|
|
shinepushpan
New User
Joined: 23 Jan 2006 Posts: 6
|
|
|
|
Put an override for the proc step through your job. It's as simple as that. |
|
Back to top |
|
|
chandan.inst
Active User
Joined: 03 Nov 2005 Posts: 275 Location: Mumbai
|
|
|
|
Hi,
you can nullify that cond parameter on 4th step using parameter parameter override
i am giving the solution
When u call the procedure, suppose the procedure name is 'proc1'
at that time code like following
//step1 exec proc=proc1,cond.step4=
do not assign any value during override
it'll nullify cond parameter on step4 particularly for this execution only
check it out
regards,
chandan |
|
Back to top |
|
|
pa1chandak Currently Banned New User
Joined: 31 Jan 2006 Posts: 55
|
|
|
|
SPECIFY COND.STEP4=(SOME CONDITION)
THIS WILL OVERRIDR THE COND OF STEP4
IF I AM WRONG SOMEWHERE PLEASE CORRECT ME
THANK YOU
DO SEND ME THE REPLY
PAWAN
09822546416
// THE ONE I LOVE , I SHALL NEVER BLAME // |
|
Back to top |
|
|
chandan.inst
Active User
Joined: 03 Nov 2005 Posts: 275 Location: Mumbai
|
|
|
|
Hi Pawan,
Yes as per your coding It'll override the cond parameter for that particular execution of the procedure;they'll not be permanent changes
regards,
chandan |
|
Back to top |
|
|
r2k1984
New User
Joined: 21 Jun 2005 Posts: 69 Location: chennai
|
|
|
|
like ucan override the condition by doing set maxcc=0
so the maximum condition code from the step3 is nullified and the maxcc for the step 4 is nullified |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
And how exactly would that be done? |
|
Back to top |
|
|
saraladevi
New User
Joined: 25 Mar 2006 Posts: 5 Location: hyderabad
|
|
|
|
hi all,
can anyone tell me can we use restart parametr and cond parmter on the job card at the same time. |
|
Back to top |
|
|
saraladevi
New User
Joined: 25 Mar 2006 Posts: 5 Location: hyderabad
|
|
|
|
hi all,
plz help me out,
the query is ,ihave some 6 steps in a job,and iwant only first step to be executed and all the other steps to be not executed ,how can we do it using cond parametr .plz relpy soon. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi saraladevi,
Please start a new thread for your ques. Scroll to the top of the page. You'll see a button called "New Topic". Click it and reenter your ques and include a topic in the box provided.
Thanx and |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Deleted by sender - duplicate. |
|
Back to top |
|
|
prasanth_thavva
New User
Joined: 28 Jul 2005 Posts: 86 Location: Chennai
|
|
|
|
hi ,
1)obviously first should run in JCL, add the null command after the first step , that's it nullifies all other steps in the JCl.,
2) using the cond. we can do this code COND=ONLY.
if the Step executes succesfully the above cond will work.if not code the below one
3) Using the cond. COND=(4,GT,Step01)
Thanks and Regards,
Venkata Prasanth.Thavva |
|
Back to top |
|
|
cheryala
New User
Joined: 20 Mar 2006 Posts: 46
|
|
|
|
Hi,
Saraladevi wrote:
Quote: |
can we use restart parametr and cond parmter on the job card at the same time. |
Quote: |
ihave some 6 steps in a job,and iwant only first step to be executed and all the other steps to be not executed ,how can we do it using cond parametr .plz relpy soon. |
We can use Restart parameter and Cond parameter on the job card at the same time.
If you want to run only the first step except remaining other 5 steps ...
you need to code
COND=(0,LE) on your job card
If you want only 3 step skipping all other steps in your job ..code
COND=(0,LE),RESTART=STEP3
Cheers |
|
Back to top |
|
|
vidhiarjaria
New User
Joined: 17 Jan 2007 Posts: 1 Location: pune
|
|
|
|
Do not put any condition in step 1 so it will get executed and put condition (0,LE,STEP1) in all other steps so any way this condition will become true and no other step will get execute. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi vidhiarjaria,
I think the method stated by Cheryala in the post immediately preceeding yours takes a lot less time and poses lees risk:
"COND=(0,LE)" on your job card vs. coding "(0,LE,STEP1) on every step in the JOB.
The Job COND is tested before each step COND in each step (except the 1st), so there's no need to change the step CONDs. |
|
Back to top |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
Yes, you can have a restart and cond both on the same job card and this would do what you want. |
|
Back to top |
|
|
damuonmail
New User
Joined: 07 Mar 2005 Posts: 12
|
|
|
|
saraladevi wrote: |
hi all,
plz help me out,
the query is ,ihave some 6 steps in a job,and iwant only first step to be executed and all the other steps to be not executed ,how can we do it using cond parametr .plz relpy soon. |
Hi,
As far as know this won't be a requirement at all. Please explain in detail what you are expecting. if you want to execute the first step alone you can include a null after the step and run the job or using IF THEn ELSE also you can solve the problem or by using COND=ONLY..... Once again I am telling it depends on your requirement. |
|
Back to top |
|
|
|