Page 1 of 1

Step not executed

PostPosted: Tue Oct 08, 2019 3:13 pm
by samb01
Hello , i can't anderstand why the step : MAILAUTO was not executed


-IEFACTRT DISNEW   TESTSMS     00     15    .00    .00    .00
-IEFACTRT DISNEW   GENSYSD     00     49    .00    .00    .00
-IEFACTRT ADDVOL1  STEP1       00    311    .00    .00    .02
-IEFACTRT ADDVOL2  STEP1       08  11623    .00    .00    .07
IEF451I UORSAVD6 STEP1 ADDVOL2 - ENDED BY CC 0008 - TIME=10.4
-UORSAVD6 ENDED.  NAME-ADDVOL               TOTAL CPU TIME=  
-NOT_EXECUTED_STEP_TABLE BEGIN                              
-JOBNAME  STEPNAME PROCSTEP STEPNO                          
-UORSAVD6          MAILAUTO   8                              
-NOT_EXECUTED_STEP_TABLE END                                

 


This the JCL :


//*>OPC       COMP=(03.EQ.03)                                      
//DISNEW   EXEC ORSAVD6,COND=(0,NE,TESTENV)                        
//*>OPC END   ACTION=INCLUDE                                        
//*                                                                
//**************************************************************    
//* MAIL AUTOMATIQUE RC >= 8                      
//**************************************************************    
//IFBAD     IF  (RC GE 7) THEN                                      
//MAILAUTO EXEC PGM=IEBGENER                                        
//SYSPRINT DD SYSOUT=*                                              
//SYSUT1   DD DISP=SHR,DSN=MAIL.FIXE            
//SYSUT2   DD SYSOUT=(H,SMTP)                                      
//SYSIN    DD DUMMY                                                
//     ENDIF  
 


the step ADDVOL2 was ended withe a RC = 8.

So, the step MAILAUTO should have run...

Re: Step not executed

PostPosted: Tue Oct 08, 2019 4:35 pm
by NicC
Try making it
ADDVOL2.STEP1.RC

Re: Step not executed

PostPosted: Tue Oct 08, 2019 5:18 pm
by samb01
Hello, i want the step MAILAUTO execute if any step has an RC>= 8.

Re: Step not executed

PostPosted: Tue Oct 08, 2019 7:27 pm
by samb01
i can't anderstand this ligne :


-NOT_EXECUTED_STEP_TABLE BEGIN
 


and that line :


-NOT_EXECUTED_STEP_TABLE END
 

Re: Step not executed

PostPosted: Wed Oct 09, 2019 7:54 pm
by Blackthorn
samb01 wrote:Hello, i want the step MAILAUTO execute if any step has an RC>= 8.


What return code does the COND parameter on the JOB statement allow? It looks as though that is causing your job to terminate once you get the RC 8. In which case, that's it, job finished. No subsequent IF statements will cause later steps to run.

Re: Step not executed

PostPosted: Wed Oct 09, 2019 8:07 pm
by samb01
hello, i have this on the job card :


//JOB6  JOB  S,'ADDVOL',MSGCLASS=T,CLASS=Y,
//          COND=(4,LE)                        
 

Re: Step not executed

PostPosted: Wed Oct 09, 2019 8:30 pm
by samb01
Thank you Blackthorn ! it's because of the cond code in the job card :D