Solved

REstarting a proc step that falls through IF

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Programmer 26 541
Need BRMS Recovery Analysis Report examples 7 216
IBM i - CL Array 5 103
how to move a save file from one as400 to another 3 29
Data breaches are on the rise, and companies are preparing by boosting their cybersecurity budgets. According to the Cybersecurity Market Report (http://www.cybersecurityventures.com/cybersecurity-market-report), worldwide spending on cybersecurity …
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 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