Re: JCL/Restart Question

2005-11-07 Thread Pommier, Rex R.
If you are trying to restart at a PROC, you also have to give it the
name of the actual step within the proc you want to restart at.  In your
example, for the restart in the proc you would need to add
RESTART=(STEP001.procstepname)  (notice in this example the parentheses
are optional)

Rex

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen M. Wiegand
Sent: Saturday, November 05, 2005 10:26 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: JCL/Restart Question


I don't know why I don't know the answer to this question, but I don't
so 
I'm asking in this list.

As you know, on an MVS JOB card you may put a RESTART= statment and
place 
the name of the jobstep you wish the mob to reatart at, i.e., 
RESTART=(STEP001) would restart at a jobstep with the label STEP001.

Now if at that label, the jobstep is an EXEC PGM=, e.g.,
//STEP001   EXEC  PGM=XYZPRGM
All is fine and the job will restart there.  However, I have found that
if 
the jobstep is a proc, e.g.,
//STEP001   EXEC  PROC=XYZPRC
You'll get an error that says RESTART Step not found.  Why??  And is
there 
a way around this?

Thanks.

Steve Wiegand

--
For IBM-MAIN subscribe / signoff / archive access instructions, send
email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search
the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: JCL/Restart Question

2005-11-05 Thread Lizette Koehler
Hi,

When restarting with a PROC you MUST include the proc name in the RESTART
parm.  The JCL manual documents this very well.

JCL Reference

20.21.1 Syntax
   RESTART=  ({*} [,checkid] )
({stepname })
({stepname.procstepname})

 
 °   You can omit the outer parentheses if you code only the first
subparameter.
°   The RESTART parameter cannot have a null value.  


Lizette Koehler

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html