In reply to Leonid Batkhan.

Hello Leonid,
Just for your information (I will drop a note to SAS Support and keep you updated :-)): working with DI Studio in the VLE environment, I tried (again) the endsas statement and ... the job aborted, but DI Studio remained active. This seems contradictory with the official documentation (https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p1aok1r21bw4oqn17duao6d81m2l.htm) which very clearly states: "[without arguments] The ENDSAS statement terminates a SAS session as soon as it is encountered in a DATA step or a PROC step. ENDSAS terminates the entire SAS session and not just the SAS job.".
Cheers!
Anne.