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

Want to Nullify the Condition Parameter of a STEP


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

New User


Joined: 10 Jun 2004
Posts: 12
Location: Bangalore,India

PostPosted: Mon Jun 21, 2004 2:29 pm
Reply with quote

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
View user's profile Send private message
bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Mon Jun 21, 2004 5:24 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Jun 21, 2004 6:05 pm
Reply with quote

Can you include the code for the PROC, especially the fourth step? The solution depends on the format used.
Back to top
View user's profile Send private message
chenchi

New User


Joined: 10 Jun 2004
Posts: 12
Location: Bangalore,India

PostPosted: Tue Jun 22, 2004 2:30 pm
Reply with quote

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
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Wed Jun 23, 2004 9:39 pm
Reply with quote

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
View user's profile Send private message
chenchi

New User


Joined: 10 Jun 2004
Posts: 12
Location: Bangalore,India

PostPosted: Thu Jun 24, 2004 1:59 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jun 25, 2004 1:21 am
Reply with quote

Chenchi,

Why can't you JUST provide the icon_evil.gif ***JCL*** icon_evil.gif ?????????
Back to top
View user's profile Send private message
shinepushpan

New User


Joined: 23 Jan 2006
Posts: 6

PostPosted: Mon Jan 30, 2006 3:53 pm
Reply with quote

Put an override for the proc step through your job. It's as simple as that.
Back to top
View user's profile Send private message
chandan.inst

Active User


Joined: 03 Nov 2005
Posts: 275
Location: Mumbai

PostPosted: Mon Jan 30, 2006 4:42 pm
Reply with quote

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
View user's profile Send private message
pa1chandak
Currently Banned

New User


Joined: 31 Jan 2006
Posts: 55

PostPosted: Thu Feb 02, 2006 9:47 am
Reply with quote

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
View user's profile Send private message
chandan.inst

Active User


Joined: 03 Nov 2005
Posts: 275
Location: Mumbai

PostPosted: Thu Feb 02, 2006 1:10 pm
Reply with quote

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
View user's profile Send private message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Tue Apr 25, 2006 12:15 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Apr 25, 2006 3:23 pm
Reply with quote

And how exactly would that be done?
Back to top
View user's profile Send private message
saraladevi

New User


Joined: 25 Mar 2006
Posts: 5
Location: hyderabad

PostPosted: Sat Apr 29, 2006 3:12 pm
Reply with quote

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
View user's profile Send private message
saraladevi

New User


Joined: 25 Mar 2006
Posts: 5
Location: hyderabad

PostPosted: Sat Apr 29, 2006 3:16 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Apr 29, 2006 7:50 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Apr 30, 2006 9:06 pm
Reply with quote

Deleted by sender - duplicate.
Back to top
View user's profile Send private message
prasanth_thavva

New User


Joined: 28 Jul 2005
Posts: 86
Location: Chennai

PostPosted: Mon May 01, 2006 3:32 pm
Reply with quote

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
View user's profile Send private message
cheryala

New User


Joined: 20 Mar 2006
Posts: 46

PostPosted: Fri May 05, 2006 12:01 pm
Reply with quote

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
View user's profile Send private message
vidhiarjaria

New User


Joined: 17 Jan 2007
Posts: 1
Location: pune

PostPosted: Mon Mar 17, 2008 12:27 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Mar 18, 2008 7:52 am
Reply with quote

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
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Tue Mar 18, 2008 10:28 pm
Reply with quote

Yes, you can have a restart and cond both on the same job card and this would do what you want.
Back to top
View user's profile Send private message
damuonmail

New User


Joined: 07 Mar 2005
Posts: 12

PostPosted: Thu Mar 20, 2008 12:50 am
Reply with quote

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
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Demand with DEADLINE TIME parameter CA Products 4
Search our Forums:

Back to Top