View previous topic :: View next topic
|
Author |
Message |
hadimam Currently Banned New User
Joined: 15 Jun 2006 Posts: 10 Location: Bangalore
|
|
|
|
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 |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
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 |
|
|
hadimam Currently Banned New User
Joined: 15 Jun 2006 Posts: 10 Location: Bangalore
|
|
|
|
thanks fro u reply is there any othe process for it. |
|
Back to top |
|
|
hadimam Currently Banned New User
Joined: 15 Jun 2006 Posts: 10 Location: Bangalore
|
|
|
|
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 |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi There,
In that case it would not execute STEP3 only |
|
Back to top |
|
|
hadimam Currently Banned New User
Joined: 15 Jun 2006 Posts: 10 Location: Bangalore
|
|
|
|
Hi gupate,
to execute from the 3rd step useing the IEBEDIT what has to be done....
Bye
mahantesh |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
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)
/*
|
|
Back to top |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Can I ask why you would not want to use the restart parameter ? |
|
Back to top |
|
|
pavan k kumar Currently Banned New User
Joined: 04 Feb 2007 Posts: 5 Location: andhra
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
|