I tried the proposed solution like $ENV{"IW_WORKAREA"} or $ENV{IW_WORKAREA} without results.
You can find in the Release Notes of 6.0L, 6.1, 6.5 listed that the following bug was fixed by version 6.0L (which was after 6.0.0 I believe)47058 The environment variables IW_USER, IW_ROLE, IW_DCT, and IW_WORKAREA are not accessible when executed from an inline callout. They are computed, but are not passed properly to the process invoked in the inline callout.If you must have this fix, maybe there's a patch you can install (if that's an option).... Or upgrade.