Joined: 01 Sep 2006 Posts: 2104 Location: Silicon Valley
My system has a 'JOBPURGR' program. It issues a $CJxxxx command (I think). And when used as the last job step and in conjunction with job return codes, you can invoke JOBPURGR to delete the job and all its output if the job completed successfully. Sorry, I do not have the source.
Perhaps you can write something similar in rexx for your own use. I think there are examples in the rexx forum for finding the job number.