Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Runing third step only in the JOB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Runing third step only in the JOB
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: 8593
Location: Back in jolly old England

PostPosted: Wed Mar 28, 2007 4:51 pm    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 4:56 pm    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 4:58 pm    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 5:00 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Mar 28, 2007 5:03 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Apr 02, 2007 9:19 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Apr 03, 2007 7:40 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts Compilation Error in Translation Step. amitc23 CICS 4 Tue Mar 01, 2016 12:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us