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

How to run the jcl from the 3rd step without using RESTART


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

New User


Joined: 15 Jun 2006
Posts: 10
Location: Bangalore

PostPosted: Tue Mar 20, 2007 11:29 am
Reply with quote

Hi all,

in my current jcl i have 5steps,and in the 3rd step the proc has 10 steps.
how can i run the jcl from the 3rd step and from the third step in the proc with out useing the Restart option in the job card.

Thanks in advance
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Tue Mar 20, 2007 11:37 am
Reply with quote

Hi There,

You can use IEBEDIT for this.

Code:
//STEP1    EXEC PGM=IEBEDIT                       
//SYSUT1   DD DSN=dsn name that contain jcl,DISP=SHR 
//SYSUT2   DD SYSOUT=(*,INTRDR)                   
//SYSPRINT DD SYSOUT=*                             
//SYSIN    DD *                                   
  EDIT TYPE=INCLUDE,STEPNAME=(STEP3,STEP4,STEP5)         
/*                                                 
     
Back to top
View user's profile Send private message
hadimam
Currently Banned

New User


Joined: 15 Jun 2006
Posts: 10
Location: Bangalore

PostPosted: Tue Mar 20, 2007 11:42 am
Reply with quote

thanks fro u reply is there any othe process for it.
Back to top
View user's profile Send private message
hadimam
Currently Banned

New User


Joined: 15 Jun 2006
Posts: 10
Location: Bangalore

PostPosted: Tue Mar 20, 2007 12:01 pm
Reply with quote

Hi Gupate ,
if i want to run the job directly form the 3rd step in the jcl out of 5 steps can i use IEBEDIT with the
sysin dd *
edit type=include,step3
/*
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Tue Mar 20, 2007 12:34 pm
Reply with quote

Hi There,

In that case it would not execute STEP3 only
Back to top
View user's profile Send private message
hadimam
Currently Banned

New User


Joined: 15 Jun 2006
Posts: 10
Location: Bangalore

PostPosted: Tue Mar 20, 2007 1:02 pm
Reply with quote

Hi gupate,

to execute from the 3rd step useing the IEBEDIT what has to be done....

Bye
mahantesh
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Tue Mar 20, 2007 1:54 pm
Reply with quote

Hi There,

That i already specified

You can use IEBEDIT for this.

Code:
//STEP1 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=dsn name that contain jcl,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP3,STEP4,STEP5)
/*

Quote:
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Tue Mar 20, 2007 2:58 pm
Reply with quote

hello,

U can code the COND parameter in the first two steps to avoid it from running.

U can type COND=ONLY in the first two steps.. Then those steps won't run
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Mar 20, 2007 3:09 pm
Reply with quote

Can I ask why you would not want to use the restart parameter ?
Back to top
View user's profile Send private message
pavan k kumar
Currently Banned

New User


Joined: 04 Feb 2007
Posts: 5
Location: andhra

PostPosted: Wed Mar 21, 2007 7:11 am
Reply with quote

iebedit works only to restart a particular step in jcl,but u wnted to retsart
it in 3rd step in jcl and from third step in procedure so i hope iebedit does not work
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: Wed Mar 21, 2007 7:42 am
Reply with quote

Hello,

Is this to use in a "real" business situation or is it a training/interview question?

This same question seems to come up very often.

I have a hard time believing that there are so many sites that need jobs restarted without using the RESTART provided just for that purpose icon_confused.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 -> 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