Solved

REstarting a proc step that falls through IF

Posted on 2011-02-17
3
783 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now