The way I do it is to have a Jes output class defined with
outputdisp of purge,hold.  Have msgclass and all output in job assigned
to this class.  Then add a step to your job that checks for CC GT 0 and
if so exec a non-existent program to generate a S806 abend.    

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On
> Behalf Of Natasa Savinc
> Sent: Tuesday, October 27, 2009 6:02 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: JES2 - keeping only selected outputs
> 
> Hello,
> 
> is there a way to keep job output only if the RC > 0 ? We have a nuber
> of jobs
> that run very often (every few minutes) and we don't really need the
> output if
> the RC = 0.
> Every suggestion will be very appreciated.
> 
> Natasa
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to