In reply to Anne Aubrun.

Hi Anne,
Thank you for your comprehensive testing. In this case, however, I would expect/prefer SAS DI Studio to behave this way. DI Studio by itself is not a SAS session, it's a tool for developing SAS jobs and running them. When you run a job in SAS DI Studio, it kicks off a "SAS session"; this job/session gets killed by the ENDSAS statement (as you describe it). That is my take on it, but let's see what SAS Technical Support says...
Best regards,
Leonid