I managed to find how deal with finding the application's execution path when batch submitting and for running it straight from SAS (9.1.3 by the way), but there appears to be a third type of situation:
When right-clicking the application-file you also get an option "Submit with SAS 9.1". When execution through this option neither SAS_EXECFILEPATH nor SYSIN will be used to store the execution path.
(SYSPROCESSNAME indicates "DMS process" like with running it from SAS)
Is it possible to obtain the execution path even under these circumstances?
-changed title to clear things up-