In reply to Anne Aubrun.

Good catch, Anne! Thank you for sharing your finding. While I recognize the SAS Studio "protection", I did not expect the message to be that geeky. I would expect a syntax error (or a pop-up window) stating that ENDSAS is not allowed to be used in SAS Studio. Actually, the SAS Studio User's Guide suggests "Note: Because you are working in a server environment, do not include the ENDSAS statement in your SAS programs. If you run a program that contains ENDSAS, reset your SAS session by selecting Options → Reset SAS session." I also submitted to SAS Support a suggestion to explicitly state this limitation in the ENDSAS statement's documentation.