Step not executed



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Step not executed

Postby samb01 » Tue Oct 08, 2019 3:13 pm

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...
samb01
 
Posts: 358
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Step not executed

 

Re: Step not executed

Postby NicC » Tue Oct 08, 2019 4:35 pm

Try making it
ADDVOL2.STEP1.RC
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2935
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 133 times

Re: Step not executed

Postby samb01 » Tue Oct 08, 2019 5:18 pm

Hello, i want the step MAILAUTO execute if any step has an RC>= 8.
samb01
 
Posts: 358
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Step not executed

Postby samb01 » Tue Oct 08, 2019 7:27 pm

i can't anderstand this ligne :


-NOT_EXECUTED_STEP_TABLE BEGIN
 


and that line :


-NOT_EXECUTED_STEP_TABLE END
 
samb01
 
Posts: 358
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Step not executed

Postby Blackthorn » Wed Oct 09, 2019 7:54 pm

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.
Blackthorn
 
Posts: 126
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: Step not executed

Postby samb01 » Wed Oct 09, 2019 8:07 pm

hello, i have this on the job card :


//JOB6  JOB  S,'ADDVOL',MSGCLASS=T,CLASS=Y,
//          COND=(4,LE)                        
 
samb01
 
Posts: 358
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Step not executed

Postby samb01 » Wed Oct 09, 2019 8:30 pm

Thank you Blackthorn ! it's because of the cond code in the job card :D
samb01
 
Posts: 358
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 1 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post