View previous topic :: View next topic
|
Author |
Message |
ALAK SAHA
New User
Joined: 12 May 2016 Posts: 2 Location: USA
|
|
|
|
Can anyone please suggest why I am getting JCL error for below JCL
Code: |
//LZANxxx JOB (LZZXXXXXX),'XTRACT-PFR-DATA',
// RESTART=STEP8,
// CLASS=5,
// MSGCLASS=T,
// MSGLEVEL=(1,1),
// NOTIFY=&SYSUID
// JCLLIB ORDER=(LZANASA.AAA.PROC)
//JOBLIB DD DSN=LZANASA.WORKTDZ.LOAD,
// DISP=SHR
//STEP1 EXEC JPROC,OUTPUT1='LZAXXX.BBB.ANNFIL(+1)',
// OUTPUT2='LZANASA.V00.G001.COUNT',
// PGN='ANNREC11',
------------------------------------------
----------------------------------------------
---------------------------------------------------------
|
Code: |
********************************* TOP OF DATA **********************************
J E S 2 J O B L O G -- S Y S T E M A A A A -- N O D
08.56.36 JOB25426 ---- FRIDAY, 30 JUN 2017 ----
08.56.36 JOB25426 IEF430I RESTART STEP NOT FOUND FOR JOB LZANXXX
08.56.36 JOB25426 IEF452I LZANXXX - JOB NOT RUN - JCL ERROR
08.56.36 JOB25426 $HASP396 LZANASAT TERMINATED
------ JES2 JOB STATISTICS ------
30 JUN 2017 JOB EXECUTION DATE
101 CARDS READ
538 SYSOUT PRINT RECORDS
0 SYSOUT PUNCH RECORDS
44 SYSOUT SPOOL KBYTES
0.00 MINUTES EXECUTION TIME |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
You are getting the JCL error because STEP8 does not exist in the JCL. The error message clearly indicates this. Perhaps you should start posting on Beginners and Students Forum instead of here since you don't appear to have the knowledge / experience to use an Experts Forum? |
|
Back to top |
|
|
RahulG31
Active User
Joined: 20 Dec 2014 Posts: 446 Location: USA
|
|
|
|
If you want to restart at STEP8 of JPROC then, you should write:
Code: |
RESTART=STEP1.STEP8 |
Where STEP1 is your Job Stepname and STEP8 is your Proc Stepname.
. |
|
Back to top |
|
|
ALAK SAHA
New User
Joined: 12 May 2016 Posts: 2 Location: USA
|
|
|
|
Well, thanks a lot prino, I had no idea like people first search a profile of a user then answer him or suggest him.
And for rest of you who is thinking why a simple plain msg could not answer my question. Right?
If anyone could notice I wrote .............. after step1, this JCL containing 21 step name as Step1, step2 .........., step21. Every step using some diff proc . all step8 's is as same as step1 just file names are diff.
Yes I thought this is a expert forum, people can use brain analysing problem helping who seeking not searching some rubbish profile. Well, thanks a lot to others who tried to help. But I have already used
Restart= proc name. Step name
But not working |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
But I have already used
Restart= proc name. Step name
But not working |
Saying something is "not working" is completely useless -- what happened when you tried it? Since you did not post any job output with RESTART=PROCNAME.STEPNAME (the manual terminology is stepname.procstepname, by the way -- so it is not clear that you even coded the RESTART parameter correctly), and we are not psychic, we have no idea what you mean by "not working". You might have gotten a JCL error, a message on the log, or whatever.
If you want help, you have to provide appropriate information. If you just make broad statements like
Quote: |
Can anyone please suggest why I am getting JCL error for below JCL |
you should expect to get broad responses. If you wanted better responses, you should have formulated a better question and included what you have tried and the results you got when you tried each time. And you want to blame us for your shortcomings? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
The job failed, since when you are restarting procs you need to mention the STEP name inside the proc as well.
If you have a job like this.. And you want to restart from STEP3
Code: |
//STEP1 EXEC EPICPROC
//STEP2 EXEC MEMELORD
//STEP3 EXEC DANKPROC
//STEP4 EXEC PGM=IEFBR14
//STEP5 EXEC PGM=IEFBR14
//STEP6 EXEC PGM=IEFBR14 |
And assuming the DANKPROC contains
Code: |
//DANKPROC PROC
//DOGE EXEC PGM=IEFBR14
//* PEND |
You cannot code RESTART=STEP3.
You need to code it as RESTART=STEP3.DOGE
The solution is already given by RahulG31.
Sorry I cleaned up this thread and deleted some replies. I did it since the it is the TS's first post.
Anyway, enjoy the weekend! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
... I had no idea like people first search a profile of a user then answer him or suggest him.
|
it helps people who spend their time helping You to find out the right level of jargon to use when answering.
since You cited as skill JCL, everybody here will expect You to be able to READ the output of a job and answer by Yourself simple questions like the one you asked |
|
Back to top |
|
|
|