i wnt to run a step in a jcl , using PROC ?
i wnt to run a step in a jcl , using PROC ?
U want to run only a step of a jcl, u can use proc how ?
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: i wnt to run a step in a jcl , using PROC ?
Hello,
Use the RESTART parameter of the JOB statement.
Use the RESTART parameter of the JOB statement.
Hope this helps,
d.sch.
d.sch.
Re: i wnt to run a step in a jcl , using PROC ?
will u give the exact code ? i thk restart will run the step and the furthersteps also.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: i wnt to run a step in a jcl , using PROC ?
Hello,
If you want only the named step to run, also include a COND=(0,LE) on the same line as the RESTART
Yes, the named step will be the first executed, then the others will follow.i thk restart will run the step and the furthersteps also
If you want only the named step to run, also include a COND=(0,LE) on the same line as the RESTART
Code: Select all
// RESTART=STEP2,COND=(0,LE)
Hope this helps,
d.sch.
d.sch.
Re: i wnt to run a step in a jcl , using PROC ?
Hi all...this is the jcl i used..
//XIND10DA JOB (000),CLASS=E,MSGCLASS=T,NOTIFY=XIND10
//STEPA1 EXEC PGM=IEBEDIT
//SYSUT1 DD DISP=SHR,DSN=TAPG.ANAND.TEST(J034)
//SYSUT2 DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DATA
EDIT TYPE=INCLUDE,STEPNAME=(STEP4-STEP6)
/*
Followed by 10 steps in which i need to execute one step
//STEP1 EXEC PGM=IEFBR14
.....
//STEP2 ...
....
//STEP10 ... Is there anything wrong in this code...help on this...
THANX DICK I GOT 2 METHODS 1. using RESTART 2. using IEBEDIT
//XIND10DA JOB (000),CLASS=E,MSGCLASS=T,NOTIFY=XIND10
//STEPA1 EXEC PGM=IEBEDIT
//SYSUT1 DD DISP=SHR,DSN=TAPG.ANAND.TEST(J034)
//SYSUT2 DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DATA
EDIT TYPE=INCLUDE,STEPNAME=(STEP4-STEP6)
/*
Followed by 10 steps in which i need to execute one step
//STEP1 EXEC PGM=IEFBR14
.....
//STEP2 ...
....
//STEP10 ... Is there anything wrong in this code...help on this...
THANX DICK I GOT 2 METHODS 1. using RESTART 2. using IEBEDIT
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: i wnt to run a step in a jcl , using PROC ?
Hello,
You're welcome
Have you tried the jcl you posted? If not, please do so (make sure you use test dataset names for any thing that will be added/changed/deleted by the test ). What happens? Did some error occur?
If there is any diagnostic output or other info that needs clarification, post it here along with your question(s).
Is there anything wrong in this code...help on this...
THANX DICK I GOT 2 METHODS 1. using RESTART 2. using IEBEDIT
You're welcome

Have you tried the jcl you posted? If not, please do so (make sure you use test dataset names for any thing that will be added/changed/deleted by the test ). What happens? Did some error occur?
If there is any diagnostic output or other info that needs clarification, post it here along with your question(s).
Hope this helps,
d.sch.
d.sch.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 4
- 5626
-
by NicC
View the latest post
Mon Oct 19, 2020 1:17 am
-
- 12
- 7862
-
by Misha786
View the latest post
Mon Nov 30, 2020 9:32 pm
-
- 10
- 3696
-
by willy jensen
View the latest post
Tue Oct 31, 2023 8:36 pm
-
- 9
- 2917
-
by sergeyken
View the latest post
Thu Jan 09, 2025 11:59 pm
-
-
Sending o/p file's content to spool withot adding extra step
by Misha786 » Tue Jan 12, 2021 6:51 pm » in JCL - 4
- 2032
-
by sergeyken
View the latest post
Tue Jan 12, 2021 11:28 pm
-