View previous topic :: View next topic
|
Author |
Message |
balramakade Currently Banned New User
Joined: 03 Apr 2007 Posts: 1 Location: Pune
|
|
|
|
Hello Friends,
I have a job with 100 steps, i want to execute only 90th step without executing any other step from the job.
Plz tell me the code to achieve this.
Thanks & Regards |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
First thing you got to search the forum... this question should top the list of popularity....
Easiest way is to put a RESTART in the JOB CARD for STEP090 and put a NULL STATEMENT (// ) after the STEP090.
Or in other ways... code another JCL with IEBEDIT utility... something like this... Which submits your MAINJOB with only STEP090...
Check for the syntactical errors... I m bad there...
Code: |
//JOBXYZ JOB (X,NNNNN,ABC),'YOUR NAME',CLASS=?,MSGCLASS=?,
// MSGLEVEL=(?,?),NOTIFY=YOUR.MF.ID
//*
//STEP010 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=MAINJOB.LOCATION.PDS(MAINJOB),
// DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT START=MAINJOB,STEPNAME=STEP090
/*
//*
// |
|
|
Back to top |
|
|
chandrakanth_s
New User
Joined: 15 Mar 2006 Posts: 13
|
|
|
|
Hi,
You can use the below statement in the Jobcard
Restart=STEP090,COND(0,LE)
The above statement will allow to execute STEP090 alone.
Regards,
Chandrakanth |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
chandrakanth_s wrote: |
You can use the below statement in the Jobcard
Restart=STEP090,COND(0,LE) |
From the manual...
manual wrote: |
16.9.3 Location in the JCL
You can specify the COND parameter on any EXEC statement in the job. However, the system evaluates a COND parameter on the first EXEC statement in a job as false. |
|
|
Back to top |
|
|
|