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 restart a particular step in job without restart parm

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

New User


Joined: 14 Nov 2007
Posts: 36
Location: Chennai

PostPosted: Mon Oct 13, 2008 7:55 pm    Post subject: how to restart a particular step in job without restart parm
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: 7913
Location: Bellevue, IA

PostPosted: Mon Oct 13, 2008 8:18 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Mon Oct 13, 2008 8:19 pm    Post subject: Reply to: how to restart a particular step in job without re
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: 8593
Location: Back in jolly old England

PostPosted: Mon Oct 13, 2008 8:41 pm    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Tue Oct 14, 2008 3:50 am    Post subject:
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

Site Director


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

PostPosted: Tue Oct 14, 2008 3:59 am    Post subject: Reply to: how to restart a particular step in job without re
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

Senior Member


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

PostPosted: Tue Oct 14, 2008 4:35 am    Post subject:
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: 36
Location: Chennai

PostPosted: Tue Oct 14, 2008 3:21 pm    Post subject: Reply to: how to restart a particular step in job without re
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: 8593
Location: Back in jolly old England

PostPosted: Tue Oct 14, 2008 3:25 pm    Post subject:
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: 23
Location: Pune, India

PostPosted: Thu Oct 16, 2008 11:41 am    Post subject: Restart step
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    Post subject: how to restart a particular step in job without restart parm
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

Site Director


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

PostPosted: Mon Feb 02, 2009 12:15 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 02, 2009 3:45 am    Post subject:
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

Senior Member


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

PostPosted: Mon Feb 02, 2009 1:07 pm    Post subject: Re: how to restart a particular step in job without restart
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    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
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Copy a particular column based on PAR... brindhamohan DFSORT/ICETOOL 5 Wed May 11, 2016 8:49 am
No new posts Use of Parm in SORT Ambili S DFSORT/ICETOOL 2 Mon May 09, 2016 9:16 pm


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