Setting the temp path

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.
Post Reply
Echo
Posts: 11
Joined: Tue Jun 04, 2019 2:48 am

Setting the temp path

Post by Echo » Wed Jun 05, 2019 5:33 am

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:

Code: Select all

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?

Thanks for any help.

Links to documentation I consulted before asking:
https://docs.lansa.com/14/en/lansa015/c ... depb3_9115
https://docs.lansa.com/14/en/lansa015/c ... _value.htm
https://docs.lansa.com/14/en/lansa015/i ... l%7C_____3

Post Reply