Hello SAS users,
I am running some simulations using PROC LIFEREG with a bayes statement in place. There are instances where the simulations fail to converge, and the proc statement aborts with a floating point error. I am wondering if there is a way to implement a try-catch error - to catch the simulations that fail to converge but move onto the next one instead of aborting the proc.
note: NOTE: The above message was for the following BY group:
note: SimulID=15
note: NOTE: Algorithm converged.
error: ERROR: Floating Point Zero Divide.
error: ERROR: Termination due to Floating Point Exception
note: NOTE: The SAS System stopped processing this step because of errors.
note: NOTE: Due to ERROR(s) above, SAS set option OBS=0, enabling syntax check mode.
note: This prevents execution of subsequent data modification statements.
warning: WARNING: The data set WORK.POSTERIORSAMPLE11 may be incomplete. When this step was stopped there were 37500 observations and 9
title: 58 The SAS System Thursday, December 30, 2021 03:08:29 AM
title:
warning: variables.
My institute has a license for only SAS 9.4, and I am using SAS Viya for Learners.
Thank you.
... View more