Solved

REstarting a proc step that falls through IF

Posted on 2011-02-17
3
863 Views
Last Modified: 2012-05-11
//IFCKDP  IF (IMB0540.RC EQ 0) THEN                                 
//IMB0588  EXEC PGM=IMB0588                                         
//******************************************                        
//*  THIS WILL COMPARE CURRENT "ENCRIPTED" NDM FILE WITH PREVIOUS.  
//*  IF DUPLICATE, RC=99, STOP PROCESSING                           
//IMB0588A DD DSN=&HLVL4..NONX.IMB540ND.IMB54005(&GEN01),DISP=SHR   
//IMB0588B DD DSN=&HLVL4..NONX.IMB540ND.IMB54005(&GEN02),DISP=SHR   
//SYSOUT   DD SYSOUT=*                                              
//ENDCKDP ENDIF                                                     
//*                                                                 

Open in new window


Whenever i try to restart this step using 'procstepname.stepname' method, it doesn't seem to be working.  Probably because of the if condition check or the condition check itself.

I would love to hear from the mainframe experts here, how can i restart a proc step which is having condition check or that falls through 'IF'
0
Comment
Question by:jimsweb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Expert Comment

by:garypfirstech
ID: 34919423
I'm assuming that IMB0540 refers to a previous step in the same PROC.  If you try to restart on that step, the condition evaluates as FALSE because it refers to a previous step that was not executed during the restart.

Try changing your IF statement to:

//IFCKDP IF (IMB0540.RC EQ 0 | ¬IMB0540.RUN) THEN

Open in new window


I haven't seen the rest of your job stream but I'm assuming that IMB0540 usually executes unconditionally.

0
 
LVL 8

Author Comment

by:jimsweb
ID: 34923570
yes you are right.
How can i restart STEP2 that is having condition checks.
//STEP1     EXEC PGM=ABCD ...
//.........
....

//STEP2     EXEC PGM=IMB0588,con=(0,NE,STEP1) 
..........

Open in new window


Will it get restarted or fail due to the conditin check?

0
 
LVL 7

Accepted Solution

by:
garypfirstech earned 500 total points
ID: 34923808
I assume that you're talking about the COND parameter.  Since STEP1 was not executed, the COND parameter evaluates to false and the step will be executed.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to import Lotus Notes Contacts into Outlook 2016, 2013, 2010 and 2007 etc. with a few manual steps. You can easily export and migrate Lotus Notes contacts into Microsoft Outlook without having to use any third party tools.
Choosing a core focus or particular set of features and options can be tough. To help out, we’re going to highlight a handful of things your business needs on one of your social media pages. In other words, if one of these is missing, you should imp…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question