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

What does the parameter RESTART=* means?


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

New User


Joined: 24 May 2007
Posts: 52
Location: Chennai

PostPosted: Thu Jun 21, 2007 2:12 am
Reply with quote

Hello All,

What does the parameter RESTART=* means in the JOB card?

Thanks in advance
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jun 21, 2007 2:59 am
Reply with quote

Hello,

If you learn to use the documentation linked to from the "Manuals" link at the top of the web page, you will get much quicker response to a reference question.

RESTART=* basically says to restart at the beginning. The words from the Fine Manual we link to are:
Quote:
Indicates that the system is to restart execution (1) at the beginning of or within the first job step or (2), if the first job step calls a cataloged or in-stream procedure, at the beginning of or within the first procedure step.
Back to top
View user's profile Send private message
ursvmg

New User


Joined: 24 May 2007
Posts: 52
Location: Chennai

PostPosted: Thu Jun 21, 2007 3:07 am
Reply with quote

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

Moderator Emeritus


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

PostPosted: Thu Jun 21, 2007 3:16 am
Reply with quote

You're welcome icon_smile.gif
Back to top
View user's profile Send private message
dr_te_z

New User


Joined: 08 Jun 2007
Posts: 71
Location: Zoetermeer, the Netherlands

PostPosted: Thu Jun 21, 2007 11:43 am
Reply with quote

The "RESTART=" can be tough to code when you have JCL proc's. In my test JCL I bypass this by always coding like this
Code:

//abcd   JOB (*,*),'Hello forum',NOTIFY=&SYSUID,     
//             CLASS=A,MSGCLASS=S,MSGLEVEL=(1,1),RESTART=OVERHER
//OVERHER EXEC PGM=IEFBR14 
Whenever you want to (re)start you job at antoher step just move that single "OVERHER" card to that position.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu Jun 21, 2007 4:29 pm
Reply with quote

@dr_te_z: welkom terug icon_wink.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jun 21, 2007 6:16 pm
Reply with quote

Hello,

Does this
Quote:
Whenever you want to (re)start you job at antoher step just move that single "OVERHER" card to that position.
require that the PROC must be recataloged in order to restart in the middle?
Back to top
View user's profile Send private message
dr_te_z

New User


Joined: 08 Jun 2007
Posts: 71
Location: Zoetermeer, the Netherlands

PostPosted: Thu Jun 21, 2007 7:00 pm
Reply with quote

dick scherrer wrote:
Whenever you want to (re)start you job at antoher step just move that single "OVERHER" card to that position. require that the PROC must be recataloged in order to restart in the middle?
Nope, the trick is that the "dummy" iefbr14 step, prior to your real step, is executed first. It acts as a label with a simple syntax.
Otherwise you have to specify exaxtly in step in the procedure where to start
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jun 21, 2007 7:06 pm
Reply with quote

Hello,

Yup, i understand the intent, i just don't understand how to magically get the BR14 to re-position itself after some step in the proc (say a restart was needed in step 4 of a 5-step proc).

If i had a cataloged proc
Code:
//myproc proc
//step1  exec pgm=pgm1
//step2  exec pgm=pgm2
//step3  exec pgm=pgm3
//step4  exec pgm=pgm4
//step5  exec pgm=pgm5

what would be the restasrt jcl to restart in step4?
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Fri Jun 22, 2007 12:30 am
Reply with quote

Dick,

If I'm not mistaken dr_te_z will get it clear for you. His office in Zoetermeer indicates he's working with IBM. But I might be wrong icon_rolleyes.gif
Back to top
View user's profile Send private message
ursvmg

New User


Joined: 24 May 2007
Posts: 52
Location: Chennai

PostPosted: Fri Jun 22, 2007 12:38 am
Reply with quote

Dick,

I suppose this will work for your question. In the job card, we have to mention

Code:
RESTART=PROC.STEP4


Please correct me if I'm wrong.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jun 22, 2007 12:48 am
Reply with quote

Hello Gopal,

Quote:
Please correct me if I'm wrong.

Please read the whole topic and you will see that your restart will work in general, but it does not answer the question.

The question deals with how to relocate the IEFBR14 restart (see previous info) without having to re-catalog the PROC. I'm trying to find out what was meant by
Quote:
Nope, the trick is that the "dummy" iefbr14 step, prior to your real step, is executed first. It acts as a label with a simple syntax.
Otherwise you have to specify exaxtly in step in the procedure where to start


Hi George - my guess is that this approach is used for proc/pend testing rather than cataloged procs. We'll see icon_smile.gif
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Fri Jun 22, 2007 12:59 am
Reply with quote

Well Dick, not tonight I guess; it's 21.27 right now in Holland so dr_te_z is no longer at the office (neither am I but this is a hobby since april 1) icon_wink.gif
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Fri Jun 22, 2007 1:16 am
Reply with quote

From the manual it looks like the * goes not by itself as the examples show. But let's wait what dr_te_z has to tell icon_wink.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jun 22, 2007 1:30 am
Reply with quote

From another place in the manual, there is
Quote:
This example shows the changes that you might make to the JCL before you resubmit a job for step restart.


Code:
//J3412    JOB  386,SMITH,MSGLEVEL=1,RD=R,RESTART=*
//S1       EXEC PGM=MYPROG
//INDATA   DD   DSNAME=INVENT[,UNIT=TAPE],DISP=OLD,
//              [VOLUME=SER=91468,]LABEL=RETPD=14
//REPORT   DD   SYSOUT=A
//WORK     DD   DSNAME=S91468,
//              DISP=(,,KEEP),UNIT=SYSDA,
//              SPACE=(3000,(5000,500)),
//              VOLUME=(PRIVATE,RETAIN,,6)
//DDCHKPNT DD   UNIT=TAPE,DISP=(MOD,PASS,CATLG),
//              DSNAME=R91468,LABEL=(,NL)
The following changes were made in the example above:

The job name has been changed (from J1234 to J3412) to distinguish the original job from the restarted job.
The RESTART parameter has been added to the JOB statement, and indicates that restart is to begin with the first job step.


IIRC, some places i've been run all of their production with a restart so that when they really have a restart, the jcl only needs the step added - thereby reducing the chance of error (or so they believed).
Back to top
View user's profile Send private message
dr_te_z

New User


Joined: 08 Jun 2007
Posts: 71
Location: Zoetermeer, the Netherlands

PostPosted: Fri Jun 22, 2007 2:01 am
Reply with quote

Bitneuker wrote:
His office in Zoetermeer indicates he's working with IBM. But I might be wrong icon_rolleyes.gif
Yep, wrong:
A - Zoetermeer is my home adress
B - IBM closed their office in Zoetermeer several years ago (it was a SNA node)
C - I do not work for IBM

Anyway, do not expect wonders from my little tip. I was just annoyed that when you have a job with e.g. step01, step02, step03 you cannot just adjust the RESTART= parameter. When the step is a "exec pgm=idcams" it's ok, but when you have a stored procedure, it is not. I found that moving the little "restart line" around is more easy and independant of the job.
When you've got to restart in the middle of a stored-proc... then you need the oldfashioned way.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Fri Jun 22, 2007 2:04 am
Reply with quote

Quote:
thereby reducing the chance of error (or so they believed).


I missed this one icon_wink.gif so I joined it icon_biggrin.gif
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top