The location of the SAS executable file cant be retrieved using the %SYSGET(SASROOT) macro function.
Thanks to Art Carpenter and Mary Rosenbloom for this tip. Read more details in this paper from WUSS 2017: I've Got to Hand It to You: Portable Programming Techniques.