Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Restart=Step not working

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

New User


Joined: 12 May 2016
Posts: 2
Location: USA

PostPosted: Fri Jun 30, 2017 6:28 pm    Post subject: Restart=Step not working
Reply with quote

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
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8189
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jun 30, 2017 6:36 pm    Post subject:
Reply with quote

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
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 408
Location: USA

PostPosted: Fri Jun 30, 2017 8:39 pm    Post subject: Reply to: Restart=Step not working
Reply with quote

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
View user's profile Send private message
ALAK SAHA

New User


Joined: 12 May 2016
Posts: 2
Location: USA

PostPosted: Fri Jun 30, 2017 9:48 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8189
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jun 30, 2017 10:28 pm    Post subject:
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1532
Location: Chennai

PostPosted: Sat Jul 01, 2017 6:18 am    Post subject:
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10364
Location: italy

PostPosted: Sat Jul 01, 2017 10:58 am    Post subject: Reply to: Restart=Step not working
Reply with quote

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
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 REXX LISTDSI () SMSINFO is not working upendrasri CLIST & REXX 4 Fri Nov 17, 2017 11:33 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us