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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to run the jcl from the 3rd step without using RESTART
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: 1187
Location: Bangalore,India

PostPosted: Tue Mar 20, 2007 11:37 am    Post subject:
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    Post subject:
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    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Tue Mar 20, 2007 12:34 pm    Post subject:
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    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Tue Mar 20, 2007 1:54 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 20, 2007 3:09 pm    Post subject:
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    Post subject: hi
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

Site Director


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

PostPosted: Wed Mar 21, 2007 7:42 am    Post subject:
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    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 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