05-01-2014 07:06 AM
I'm facing a issue in SAS SCL programming.
I have an SCL program (without Frame) to validate a scenerio and pop up Error message box with Yes and No buttons. When user clicks "No", I need to terminate the application.
I use "Submit terminate; <some statements> endsubmit;" to terminate the application.
The issue I'm facing is the cursor remains busy icon for ever. When user clicks anywhere outside the active editor window, the cursor becomes normal icon.
I hope there would not be any issue with the messagebox statement or the statements of Submit terminate.
Please let me know If there could be any possibile of root cause for this issue.
05-01-2014 07:45 AM
SAS(R) Component Language 9.3: Reference (stop) is the normal way to halt your AF program
The init main term sections have special meanings with AF (SCL).
When you give the terminate action running SAS statements (outside AF) there can be a problem AF wants to continue wiht the next (term) section.
By that you will see a hanging or even looping system.
I have seen this kind of errors with AF Macro-language and SAS/connect. As timing and event-triggering are that important it is very difficult to pinpoint and explain the issue/error.
More easy is to bypass it with a more reliable logical construct.