UNAUTH=YES

If you specify UNAUTH=YES, SWAREQ cannot abend. It always returns to the program that invoked it. Check the return code in GPR 15. If the return code is 0, the service is successful. Otherwise, the service failed and the non-zero return code in GPR 15 is also the reason code associated with the failure.