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

Runing third step only in the JOB


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raman.k

New User


Joined: 26 Feb 2007
Posts: 24
Location: chennai

PostPosted: Wed Mar 28, 2007 4:40 pm
Reply with quote

Hi
I have 4 steps JCL.
I want run third step only not step.
Now what we do

Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 4:51 pm
Reply with quote

You can use the search facility to look to see if this topic has been posted before, and YES it has.

Have you looked at any JCL manuals to see how this can be achieved ?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 4:56 pm
Reply with quote

Hi there,


Topic is already discussed

Code:
//STEP1    EXEC PGM=IEBEDIT                     
//SYSUT1   DD DSN=data set that contain JCL,DISP=SHR
//SYSUT2   DD SYSOUT=(*,INTRDR)                 
//SYSPRINT DD SYSOUT=*                           
//SYSIN    DD *                                 
  EDIT TYPE=INCLUDE,STEPNAME=STEP3       
/*
Back to top
View user's profile Send private message
raman.k

New User


Joined: 26 Feb 2007
Posts: 24
Location: chennai

PostPosted: Wed Mar 28, 2007 4:57 pm
Reply with quote

expat wrote:
You can use the search facility to look to see if this topic has been posted before, and YES it has.

Have you looked at any JCL manuals to see how this can be achieved ?



please menition the location.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 4:58 pm
Reply with quote

There are many ways to acheive this. Two way I had posted below -

With COND parameter only -

Code:

//STEP1 EXEC PGM=IEFBR14,COND=ONLY
//...........
//STEP2 EXEC PGM=IEFBR14,COND=ONLY
//...........
//STEP3 EXEC PGM=IEFBR14
//...........
//STEP4 EXEC PGM=IEFBR14,COND=ONLY
//...........



With RESTART and COND parameter-

Code:

//JOBBB JOB RESTART=STEP3
//*
//STEP1 EXEC PGM=IEFBR14
//...........
//STEP2 EXEC PGM=IEFBR14
//...........
//STEP3 EXEC PGM=IEFBR14
//...........
//STEP4 EXEC PGM=IEFBR14,COND=ONLY
//...........
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 5:00 pm
Reply with quote

icon_redface.gif

Its not
Quote:
Two way I had posted below -


but

Quote:
Two ways I had posted below -
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 5:03 pm
Reply with quote

At the top of this page, and every other page, there are a selection of options, SEARCH & Manuals being just two of them.
Back to top
View user's profile Send private message
vickyltit
Currently Banned

New User


Joined: 22 Jan 2007
Posts: 2
Location: India

PostPosted: Mon Apr 02, 2007 1:52 pm
Reply with quote

Hi

If restart is there then wat happend when u submitt that job it will execute step3 & step4 both best way for tht is u can use restart=step3 & in step4 u have to use COND=only then the job will go first to step3 & after that checks the condition of step4 .
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Apr 02, 2007 9:19 pm
Reply with quote

Hello,

If step4 specifies cond=only and step3 abends, step4 will execute - probably not what is desired. . .
Back to top
View user's profile Send private message
Ranjanapai

New User


Joined: 21 Mar 2007
Posts: 3
Location: India

PostPosted: Tue Apr 03, 2007 3:26 pm
Reply with quote

u can specify in the begining of the proc

cond.stepname=(0,le) which will not execute that step..

correct me if i am wrong....
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Apr 03, 2007 7:40 pm
Reply with quote

Yup, that is an easy way to accomplish what is wanted here icon_smile.gif
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 -> Mainframe Interview Questions

 


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