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

Restart Parameters


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

New User


Joined: 15 Aug 2009
Posts: 29
Location: Chennai

PostPosted: Wed Aug 11, 2010 7:27 pm
Reply with quote

Hi,
I have 10 steps in my jcl and i am using cataloge procedure at 11th step in my JCL which has 15 steps in it.
i want to execute 2nd & 3rd step from my jcl and my catalog proc starts at 11th step in JCL, And i need to execute 6 - 10 step from catalog proc.
i Tried with following code:

//DIMA3135 JOB (DIMAD,DEVL),'CREATE NON MON FILE',
// CLASS=S,MSGCLASS=T,NOTIFY=&SYSUID,RESTART=IMA3135.STEP06
//*

Which is able to restart from step06 of catalog proc, but i need to execute few of the steps present in my jcl before it.
Please let me know the suitable restart parameter for the same.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Aug 11, 2010 7:32 pm
Reply with quote

What does the word RESTART mean to you. It is a parameter that says START the job from a certain place. That is it, defined, set out, complete. It does not say start here but then miss out a few steps, it merely tells the OS where a job stream will start execution from.

You need to look at using COND= or seeing if there are any IF/THEN/ ELSE statements in the PROC, because if there are I bet a penny to a pound that they are not changeable so could really throw a spanner in the works.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Aug 11, 2010 7:47 pm
Reply with quote

Is it related to some Production-abend and you want to restart with those constraints or is it for learning?

If it's for Production-abend, you need to check what is allowed at your shop and check if any of these can work for you:

  • Make the PROC in-stream and comment-out/delete the unwanted steps from PROC and Job - and execute the "result-Job".
  • If IEBEDIT can be you option select only
    Quote:
    2nd & 3rd step from my jcl
    and PROC step, with same RESTART parameters in your Job-card which you have showed.
I have not tried IEBEDIT for such a thing, however, looks like it should be doable.
Back to top
View user's profile Send private message
santy
Warnings : 1

New User


Joined: 19 Jul 2007
Posts: 22
Location: mumbai

PostPosted: Tue Aug 17, 2010 11:04 am
Reply with quote

RESTART parameter is use to restart your from a required step.

RESTART will start your job from request step to end of the job.
e.g. after failure of job u want to restart the job from step 6, u can use the defined the RESTART parameter RESTART=JOBname.SETP06 at your jobcard.

for restarting particular steps, like step 02 and 03. i think u have to comment all other step which is not require for you.
and use the paramenter as

RESTART=jobanme.step02

it will run only step 02 and 03.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 17, 2010 1:27 pm
Reply with quote

lagneshp,

typical, sloopy, rookie, uneducated misuse of terms.

RESTART in the world of computers has only one meaning.

Start at a particular STEP and then run to completion of JOB.

running only certain steps of a job is:
running only certain steps of a job.

you will get further in this field when you bother to expand your vocabulary.
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 Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts passing symbolic parameters through d... JCL & VSAM 3
No new posts Trim values of parameters in JCL JCL & VSAM 2
No new posts Alter User LOGON Script Parameters CLIST & REXX 11
Search our Forums:

Back to Top