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

How to run the first step only from the JOB


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

New User


Joined: 21 Oct 2003
Posts: 45

PostPosted: Fri Feb 20, 2004 3:30 pm
Reply with quote

Hi I have doubt on Job steps?

Some steps r there in JOB? I want to run first step only and remaining steps should be skip?How?
icon_question.gif
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Fri Feb 20, 2004 3:37 pm
Reply with quote

You can put a black line like "//" after first step. The job will be completed there only.

Regards,
Sandip.
Back to top
View user's profile Send private message
vikasc4

New User


Joined: 11 Dec 2005
Posts: 32

PostPosted: Mon Jan 09, 2006 11:07 am
Reply with quote

hi,

Just put Null statement "//" after the first step and you will be able to execute the first step only.


regards
Vikas
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Mon Jan 09, 2006 11:37 am
Reply with quote

try this,,

in the job card mention cond parameter has...COND=(0,LE)...

if first job steps return code is 0 then remaining all the jobs will not get executed....

correct me if i am wrong.....

Thanks,
Rajesh
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Mon Jan 09, 2006 12:28 pm
Reply with quote

HI,

Quote:
Some steps r there in JOB? I want to run first step only and remaining steps should be skip?How?

I also agree iwth Sandip and Vikas,

Rajesh,
Quote:
n the job card mention cond parameter has...COND=(0,LE)...

What wil heppend if step1 not run fine.

Regards
Rupesh
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Mon Jan 09, 2006 12:43 pm
Reply with quote

Thanks rupesh..for correcting me....

try this....in the job card...


COND=(4095,GE)


Correct me if i am wrong...

Thanks,
Rajesh
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Mon Jan 09, 2006 1:09 pm
Reply with quote

Hey rupesh u made me confused..

we can use...

COND=(0,LE) or

COND=(4095,GE) at the job card...

Thanks,
Rajesh.
Back to top
View user's profile Send private message
batakhani

New User


Joined: 29 Mar 2005
Posts: 2

PostPosted: Mon Jan 09, 2006 3:44 pm
Reply with quote

Hi Use COND=(0,LE)
// after step1

OR
// after step1 no need of cond parameter.
Back to top
View user's profile Send private message
aitha_prashanth

New User


Joined: 17 Mar 2005
Posts: 8
Location: chennai

PostPosted: Mon Jan 09, 2006 3:52 pm
Reply with quote

u can give a null stmt after after first step..
ex:
//step1 exec.........
//ddname...
//ddname..
// <---null stmt
Back to top
View user's profile Send private message
Preetha

New User


Joined: 11 Jan 2006
Posts: 1

PostPosted: Wed Jan 11, 2006 8:35 pm
Reply with quote

hello,

just write job in that last command line.automatically all the job codes will appear in (tso/390).i dont know how to do in other operating systems..

thankyou.
Back to top
View user's profile Send private message
shailen

New User


Joined: 27 Mar 2004
Posts: 22

PostPosted: Wed Jan 11, 2006 10:37 pm
Reply with quote

//TESTPGM1 JOB 509398,COND-PGM,COND=(0,EQ)
//..
//...
Back to top
View user's profile Send private message
shanudarling
Warnings : 1

New User


Joined: 20 Dec 2006
Posts: 55
Location: noida

PostPosted: Thu Dec 21, 2006 2:40 pm
Reply with quote

hi rupesh.....

Quote:
n the job card mention cond parameter has...COND=(0,LE)...

What wil heppend if step1 not run fine.

1st step always exec in every cond. if rc>0 (e.g. RC=4) IT CHECKS
0<4. the cond is true job terminate automatically.
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 convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top