Hello,
I am using STOP condition to back out an active transaction if the API handle is not available. STOP statement takes the user out of an active session to the startup procedure.
I tried to use ON STOP to avoid getting the users to the startup procedure and still back out the active transaction.... but failed. May be I am not doing it right. All the examples I viewed were for FOR EACH blocks.
How would I apply ON STOP phrase to the following block?
if <API IS NOT AVAILABLE> then do:
stop.
return.
end.
Thank you very much.
I am using STOP condition to back out an active transaction if the API handle is not available. STOP statement takes the user out of an active session to the startup procedure.
I tried to use ON STOP to avoid getting the users to the startup procedure and still back out the active transaction.... but failed. May be I am not doing it right. All the examples I viewed were for FOR EACH blocks.
How would I apply ON STOP phrase to the following block?
if <API IS NOT AVAILABLE> then do:
stop.
return.
end.
Thank you very much.