Dave,
It's good that SAS can finally pick-up the program it's executing at run-time interactively.
The problem is, these environment variables don't exist when the program is being batch-submitted.
Just a note to anyone using these environment variables that you need to be careful which SAS environment you're using them in.
You can check whether the program is being executed interactively (checking whether SYSPROCESSNAME = DMS PROCESS) or in batch mode.
Cheers,
Lawrence
... View more