Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
You can't do what you want. Setting a non-zero return code for a successful process is rather counter-intuitive.
My best suggestion is to make sure that you write the output of the //OUTPUT DD to a dataset, then in a subsequent step read that dataset and look for the message where the DELETE command was successful. Then, you can set a return-code value as appropriate.