In reply to Tom Vincent.

Tom, even when running the stored process in EG, usually it's running on a stored process server, and so does not have the same Workspace server context. So yes, you might need to hard-code or come up with another approach. Check the details of the stored process log to see all of the available macro vars. Maybe include a %PUT _ALL_ (temporarily) in your stored process to see what's available.