Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to execute only one step from no. of steps in a Job?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: How to execute only one step from no. of steps in a Job?
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: 1452
Location: Chicago, IL

PostPosted: Wed Apr 04, 2007 5:01 am    Post subject: Re: How to execute only one step from no. of steps in a Job?
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    Post subject: Re: How to execute only one step from no. of steps in a Job?
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: 1452
Location: Chicago, IL

PostPosted: Wed Apr 04, 2007 1:15 pm    Post subject: Re: How to execute only one step from no. of steps in a Job?
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us