This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
We are trying to set the temp path to be %localappdata%\appTempPath. We succeeded in doing this by setting the X_RUN arguments in the deployment tool to be TPTH=%localappdata%\appTempPath. We would like to do this programmatically though. I've tried setting TPTH to the desired path in avSetSessionValues and avSetBCSessionValues:
Mthroutine Name(avSetSessionValues) Options(*Redefine)
Use Builtin(SET_SESSION_VALUE) With_Args('PPTH=' #uSystem.uUser.uTempDirectory)
Use Builtin(SET_SESSION_VALUE) With_Args('DPTH=' #uSystem.uUser.uTempDirectory)
Use Builtin(SET_SESSION_VALUE) With_Args('TPTH=' '%localappdata/SmartDistributorTemp')
Endroutine
But it turns out that TPTH is not a valid argument for SET_SESSION_VALUE. So, my question is, is it possible to set the TPTH value somewhere(ideally a BIF) other than X_RUN arguments in the deployment tool?