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



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

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

Postby abkumarch » Tue Oct 30, 2007 8:32 pm

U want to run only a step of a jcl, u can use proc how ?
abkumarch
 
Posts: 21
Joined: Tue Oct 30, 2007 3:14 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Wed Oct 31, 2007 2:20 am

Hello,

Use the RESTART parameter of the JOB statement.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby abkumarch » Wed Oct 31, 2007 4:43 pm

will u give the exact code ? i thk restart will run the step and the furthersteps also.
abkumarch
 
Posts: 21
Joined: Tue Oct 30, 2007 3:14 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Wed Oct 31, 2007 9:46 pm

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)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby abkumarch » Thu Nov 08, 2007 1:44 am

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
abkumarch
 
Posts: 21
Joined: Tue Oct 30, 2007 3:14 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Thu Nov 08, 2007 1:59 am

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).
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post