Solved

REstarting a proc step that falls through IF

Posted on 2011-02-17
3
844 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Suggested Courses

752 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