Step not executed

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
samb01
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Skillset: quite good
Referer: by web

Step not executed

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

Hello , i can't anderstand why the step : MAILAUTO was not executed

Code: Select all


-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 :

Code: Select all


//*>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...

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: Step not executed

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

Try making it

Code: Select all

ADDVOL2.STEP1.RC
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

samb01
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Skillset: quite good
Referer: by web

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: 431
Joined: Mon Nov 16, 2009 7:24 pm
Skillset: quite good
Referer: by web

Re: Step not executed

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

i can't anderstand this ligne :

Code: Select all


-NOT_EXECUTED_STEP_TABLE BEGIN
 


and that line :

Code: Select all


-NOT_EXECUTED_STEP_TABLE END
 

Blackthorn
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Skillset: JCL, TWS, IBM Utilities
Referer: Found on web

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.

samb01
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Skillset: quite good
Referer: by web

Re: Step not executed

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

hello, i have this on the job card :

Code: Select all


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

samb01
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Skillset: quite good
Referer: by web

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


  • Similar Topics
    Replies
    Views
    Last post