IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to execute only one step from no. of steps in a Job?


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
balramakade
Currently Banned

New User


Joined: 03 Apr 2007
Posts: 1
Location: Pune

PostPosted: Wed Apr 04, 2007 2:50 am
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Apr 04, 2007 5:01 am
Reply with quote

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... icon_sad.gif

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
View user's profile Send private message
chandrakanth_s

New User


Joined: 15 Mar 2006
Posts: 13

PostPosted: Wed Apr 04, 2007 9:55 am
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Apr 04, 2007 1:15 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Fetch data from programs execute (dat... DB2 3
No new posts CA7 deleting files in steps after job... CA Products 4
Search our Forums:

Back to Top