SPL processing question
Posted in 2010
IDS 9.4FC3 HP/UX 11.11 We have a function where we are trying to ensure the return is done even if there is a problem later in the routine, but when I purposefully make the end portion fail, it doesn't return the values before returning the error message. It is called from a web app and as long as it doesn't fail up to the return, it's good for the web app, the rest of the function is for additional processing has no bearing on the web app call. Is there a way to do this so it will, barring failure in the main processing section, return the result, then continue processing. Ideally, it would be 2 functions with the web app calling both, but don't have control of the web app calls so trying to do it from the 1 existing call I have to work with. Example. Create function.... Begin work; Do main processing of function Commit work; Return value1,value2 WITH RESUME; Do some more processing that is irrelevant to primary call and doesn't have a return statement, just ends when complete. End function; Thanks, Randy