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

how to restart a particular step in job without restart parm


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Krishnadeva Reddy

New User


Joined: 14 Nov 2007
Posts: 37
Location: Chennai

PostPosted: Mon Oct 13, 2008 7:55 pm
Reply with quote

Hi,

I have a job with 3 steps when submitted failed in 2nd step.

Now I want to run the job from 3rd step(only 3rd step) without restart parameter in jobcard.And the proc is not editable ,only we can give overrides from the jobcard.

Please let me know how I can restart the job only with 3rd step.

Thanks,
Krishna.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Oct 13, 2008 8:18 pm
Reply with quote

Just out of curiosity, if you cannot edit the JCL and you cannot use a restart parameter, exactly how do you think you can start the job on the third step?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Oct 13, 2008 8:19 pm
Reply with quote

The only thing I can think of is to pass the JCL through the IEBEDIT utility.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Oct 13, 2008 8:41 pm
Reply with quote

Why the silly requirement for no restart parameter ?

Is this a HOMEWORK question ?
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon Oct 13, 2008 9:11 pm
Reply with quote

If step3 is part of a PROC then IEBEDIT probably cannot be used.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Oct 14, 2008 3:50 am
Reply with quote

Hi,

I agree with Bill, the input to IEBEDIT needs to contain a jobname.

Also if there are IF/THEN/ELSE statements IEBEDIT does not handle them too well.

Whilst the PROC is not editable, can it be copied out and then hacked ?

Gerry
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Oct 14, 2008 3:59 am
Reply with quote

After flipping a coin 15 times, i have come up with:

Interview question - 9
Classroom work - 6

Other possibilities icon_confused.gif

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

Superior Member


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

PostPosted: Tue Oct 14, 2008 4:35 am
Reply with quote

if only 15(9+6) possibilities are there to select from..other possibilities are ruled out.. icon_wink.gif

-Ad
Back to top
View user's profile Send private message
Krishnadeva Reddy

New User


Joined: 14 Nov 2007
Posts: 37
Location: Chennai

PostPosted: Tue Oct 14, 2008 3:21 pm
Reply with quote

Hi,

Sorry for the confusion if I was not able to explain the requirement properly,but this was my requirement to do.

Atlast after several attempts I found a solution for this.

//JOBCARD
//*
//STEP01 EXEC PROC,COND.STEP01=ONLY,COND.STEP02=ONLY
//*

I was able to execute only 3rd step where 1st and 2nd steps are flushd out after giving jobcard overrides by the way I mentioned.

Thanks for your time and other suggestions.

Thanks,
Krishna.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Oct 14, 2008 3:25 pm
Reply with quote

Yeah, it is a known solution to the request, but would you prefer to code one restart parameter on the jobcard, or to code all of that for restarting at STEP99 of a proc with 100 steps ?

I would still like to understand the reasoning behind not using the restart parameter.

AND ......................... WELL DONE for searching out your own solution
Back to top
View user's profile Send private message
jinal_mca

New User


Joined: 05 Jan 2007
Posts: 22
Location: Pune, India

PostPosted: Thu Oct 16, 2008 11:41 am
Reply with quote

Hi Krishna,

Well the issue is closed still would like to add some thing. Normally we used to face the same issue in production. and we will not be able to edit jcl or proc.

Following solutions we used to give in such situations in production live scenario:
1) open jcl in view mode & give restart step.
2) can copy it to your personal pds and edit it then go for submission
3) in case of proc also you can take in in private proclib then after editing it temporary in view mode change your proclib concatenation in jcl

Above are all the possible ways to do such things.

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

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Sun Feb 01, 2009 7:11 pm
Reply with quote

Code:
USE RD=R OR RNC OR NC OR NR


at exec level for automatic restart
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Feb 02, 2009 12:15 am
Reply with quote

Hello,

Please post something that shows how this meets the original request.

What is your definition of "exec level"?

A more detailed post would probably help. . .
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Feb 02, 2009 3:45 am
Reply with quote

And why are you replying to a thread that has been dormant for over two months ???
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Feb 02, 2009 1:07 pm
Reply with quote

nkothako wrote:
Code:
USE RD=R OR RNC OR NC OR NR


at exec level for automatic restart
Even if it's doable, you would need to edit the PROC/JCL where the origianl post says
Quote:
And the proc is not editable
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top