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

How to exeute first 50 steps in a job


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Mar 22, 2013 11:49 am
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
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

Superior Member


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

PostPosted: Fri Mar 22, 2013 1:31 pm
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Mar 22, 2013 3:31 pm
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: 199
Location: UK

PostPosted: Fri Mar 22, 2013 6:40 pm
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

Superior Member


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

PostPosted: Fri Mar 22, 2013 6:50 pm
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: 765
Location: Whitby, ON, Canada

PostPosted: Fri Mar 22, 2013 8:50 pm
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
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

Superior Member


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

PostPosted: Fri Mar 22, 2013 9:36 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts Identify the count from two diffrent ... DFSORT/ICETOOL 19
No new posts SMF logging in RDT server - Steps inv... PL/I & Assembler 1
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... JCL & VSAM 6
No new posts How steps execute in Job in case of a... JCL & VSAM 4
Search our Forums:

Back to Top