Re: SPL processing question
Posted in 2010
Put in a ON EXCEPTION clause to capture and ignore the errors. Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) IIUG Board of Directors (art@iiug.org) Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Thu, Aug 26, 2010 at 11:19 AM, Kennedy, Randy <RKennedy@scottsdaleaz.gov>wrote: > 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 > > > > _______________________________________________ > Informix-list mailing list > Informix-list@iiug.org > http://www.iiug.org/mailman/listinfo/informix-list >