Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to run the first step only from the JOB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to run the first step only from the JOB
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: 151
Location: Tokyo, Japan

PostPosted: Fri Feb 20, 2004 3:37 pm    Post subject:
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    Post subject:
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    Post subject:
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: 464

PostPosted: Mon Jan 09, 2006 12:28 pm    Post subject: Re: I want to first step only in JOB?
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    Post subject:
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    Post subject:
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    Post subject: Hi
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    Post subject: Re: I want to first step only in JOB?
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    Post subject:
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    Post subject: Re: How to run the first step only from the JOB
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    Post subject:
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    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
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 6 Fri Sep 22, 2017 7:08 am
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us