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

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
abkumarch
Posts: 21
Joined: Tue Oct 30, 2007 3:14 am
Skillset: cobol,jcl,vsam, db2
Referer: google

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 ?

User avatar
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 ?

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

Hello,

Use the RESTART parameter of the JOB statement.
Hope this helps,
d.sch.

abkumarch
Posts: 21
Joined: Tue Oct 30, 2007 3:14 am
Skillset: cobol,jcl,vsam, db2
Referer: google

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.

User avatar
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 ?

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

Code: Select all

//  RESTART=STEP2,COND=(0,LE)
Hope this helps,
d.sch.

abkumarch
Posts: 21
Joined: Tue Oct 30, 2007 3:14 am
Skillset: cobol,jcl,vsam, db2
Referer: google

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

User avatar
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 ?

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.


  • Similar Topics
    Replies
    Views
    Last post