MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Skip steps in proc on restart

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Tue Oct 12, 2010 7:29 am    Post subject: Skip steps in proc on restart Reply with quote

I want to restart an ABENDed job. this JCL runs a proc which uses conditional execution as follows
//STEPA...
// IF (STEPA.RC = 0) THEN
//STEPB ...
//STEPC ...
//STEPD..
// ENDIF

I want to not only skip STEPA but also STEPB on the restart and execute C, D. Any way to do w/o editing the Proc radically?

Tx
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Oct 12, 2010 7:47 am    Post subject: Reply with quote

why don't you try the RESTART parm of the JOBCARD - refer to JCL manual.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Tue Oct 12, 2010 12:44 pm    Post subject: Reply with quote

Thanks to reply.

OK- I add ,RESTART=STEPC at end of jobcard.
What I observe is that since STEPA not being executed, STEPA.RC doesn't have any value and so STEPC not executed- says
STEP WAS NOT RUN BECAUSE OF CONDITIONAL EXPRESSION
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Wed Oct 13, 2010 2:13 am    Post subject: Reply with quote

Yep. Using IF/THEN/ELSE is a far distant animal from using COND=

Using these in a PROC requires a great deal of consideration for step restarts or selective step processing. Welcome to the world of badly designed and implemented applications Mr. Green
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Wed Oct 13, 2010 4:05 am    Post subject: Reply with quote

Another alternatives can be : If possible, make the PROC in-stream and remove the unwanted steps and execute. Or possibly use IEBEDIT.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Wed Oct 13, 2010 6:49 am    Post subject: Reply with quote

expat wrote:
Yep. Using IF/THEN/ELSE is a far distant animal from using COND=

Using these in a PROC requires a great deal of consideration for step restarts or selective step processing. Welcome to the world of badly designed and implemented applications Mr. Green

That's also the flip side of legacy apps- having to support something written (in this case 12) years ago. Pays the bills, tho.
Back to top
View user's profile Send private message
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Wed Oct 13, 2010 6:53 am    Post subject: Reply with quote

Anuj Dhawan wrote:
Another alternatives can be : If possible, make the PROC in-stream and remove the unwanted steps and execute. Or possibly use IEBEDIT.

Thanks
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Wed Oct 13, 2010 3:31 pm    Post subject: Reply with quote

Quote:
having to support something written (in this case 12) years ago


Ah, ummm, wellll - 12 years old is a very young corporate application. . .

Quote:
That's also the flip side of legacy apps
This escapes me Confused

I just did a quick check of the production jcl used on a few systems and there are no IF/THEN/ELSEs in the JCL - which was all originally implemented when everyone was expected to know JCL well so COND= was not an issue.

As was mentioned, I/T/E hinders many restart situations.
_________________
All the best,

di
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group