Page 1 of 1

i wnt to run a step in a jcl , using PROC ?

PostPosted: Tue Oct 30, 2007 8:32 pm
by abkumarch
U want to run only a step of a jcl, u can use proc how ?

Re: i wnt to run a step in a jcl , using PROC ?

PostPosted: Wed Oct 31, 2007 2:20 am
by dick scherrer
Hello,

Use the RESTART parameter of the JOB statement.

Re: i wnt to run a step in a jcl , using PROC ?

PostPosted: Wed Oct 31, 2007 4:43 pm
by abkumarch
will u give the exact code ? i thk restart will run the step and the furthersteps also.

Re: i wnt to run a step in a jcl , using PROC ?

PostPosted: Wed Oct 31, 2007 9:46 pm
by dick scherrer
Hello,

i thk restart will run the step and the furthersteps also
Yes, the named step will be the first executed, then the others will follow.

If you want only the named step to run, also include a COND=(0,LE) on the same line as the RESTART
//  RESTART=STEP2,COND=(0,LE)

Re: i wnt to run a step in a jcl , using PROC ?

PostPosted: Thu Nov 08, 2007 1:44 am
by abkumarch
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

Re: i wnt to run a step in a jcl , using PROC ?

PostPosted: Thu Nov 08, 2007 1:59 am
by dick scherrer
Hello,

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).