Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to exeute first 50 steps in a job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
tamminenisidhartha
Currently Banned

New User


Joined: 31 Oct 2012
Posts: 43
Location: INDIA

PostPosted: Fri Mar 22, 2013 11:42 am    Post subject: How to exeute first 50 steps in a job
Reply with quote

Hi all.

I am trying to execute a job which has 100 steps.
What if I want to execute only first 50 steps in the job and not execute the last 50 steps.
Is there any parameter for that ?

Any help would be appreciated.

Thank you,
Sidhartha T
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Fri Mar 22, 2013 11:49 am    Post subject: Reply to: How to exeute last 50 steps in a job
Reply with quote

NO...
You will have to modify the JCL itself, the modifications extent will depend on how the JCL was originally written

for a once only run the fastest would be edit the JCL and delete the unwanted steps

also learn to pay attention to what You post
in the title You ask how to execute the last 50 steps ...
in the body of the question You ask how to execute the first 50 steps

sloppy posting will make people ignore Your questions
Back to top
View user's profile Send private message
tamminenisidhartha
Currently Banned

New User


Joined: 31 Oct 2012
Posts: 43
Location: INDIA

PostPosted: Fri Mar 22, 2013 11:59 am    Post subject: Reply to: How to exeute last 50 steps in a job
Reply with quote

Sorry Enrico Sorichetti,
It was a mistake.
I want to execute the first 50 steps only.
Is there any parameter that needs to be given in the job card ?

Title corrected
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Mar 22, 2013 1:31 pm    Post subject:
Reply with quote

This has been posted many times in the Forum, please search the Forum.

On the other hand, apart from what Enrico has suggested - have you tried IEBEDIT?

Another solution might be... and because it's first 50-steps - put label ".A" at first line-number and ".B" at the end of step50 then at command line
Code:
SUB .A .B


I think, you're just curious to know this -- or do you really have some practical situation up front?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Mar 22, 2013 3:31 pm    Post subject:
Reply with quote

Put a /*EOF after step 50.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 175
Location: UK

PostPosted: Fri Mar 22, 2013 6:40 pm    Post subject:
Reply with quote

There are a number of options which may or may not be suitable for your needs. None are as easy as you would like (a STOP statement perhaps) and each have their own drawbacks, you will have to decide which is best for your situation.

1) If you can update the proc, add an EOF marker as Peter has suggested. This can be simply // with nothing else after it.
2) If not, copy the proc to a different library that you can update and add a JCLLIB statement to the jobcard
3) Copy the proc to the jobcard, amend it and add a PEND statement
4) Add an over-ride on the jobcard to STEP51 that introduces an error, eg; a dataset that does not exist.
5) Code a COND.stepname=(0,LE) after the EXEC PROC statement. Might be tedious for 50 steps though.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Mar 22, 2013 6:50 pm    Post subject:
Reply with quote

Actually, this 'issue' has been debated to death on this Forum and I'd still like to re-state in the hope to know it from OP:
Quote:
I think, you're just curious to know this -- or do you really have some practical situation up front?
along with an addiotnal query - if it's an interview question?
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 642
Location: Whitby, ON, Canada

PostPosted: Fri Mar 22, 2013 8:50 pm    Post subject:
Reply with quote

Another variation:

1.use the ISPF editor to Exclude the steps that you do not want to execute.
2. SUB NX This command will submit the non-excluded lines.

I find this to be a bit easier than the "SUB .A .B" technique.

Or, go into View, delete the steps that you don't want to execute, then SUB the lines that are left. With View, as opposed to Edit, there is no danger of accidentally saving your temporary changes. Been There, Done That.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Mar 22, 2013 8:59 pm    Post subject: Re: Reply to: How to exeute last 50 steps in a job
Reply with quote

tamminenisidhartha wrote:
Sorry Enrico Sorichetti,
It was a mistake.
I want to execute the first 50 steps only.
Is there any parameter that needs to be given in the job card ?



This has got to be the funniest response I've seen in a while. Blew right past the real answer, then rephrased and asked the same question.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Mar 22, 2013 9:36 pm    Post subject:
Reply with quote

Good one Ed, ditto! icon_smile.gif
Back to top
View user's profile Send private message
Gary McDowell

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Fri Mar 22, 2013 11:09 pm    Post subject:
Reply with quote

Very easy...

After the 50th step, add // which will end the job.

For example...
//STEP1
//STEP2
...
//STEP50
//
//STEP51 {remaining steps will not execure with "//" above}
...
//STEP100
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm
No new posts Count the number of JCL executable steps nartcr JCL & VSAM 5 Wed Nov 05, 2014 2:57 am
No new posts How to start two steps simantaneously... mchanapa JCL & VSAM 11 Wed Dec 04, 2013 2:39 pm
No new posts Run steps from 100 to 130 in procedure Kmr.deepakcs JCL & VSAM 7 Thu Nov 07, 2013 7:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us