The use of environment variables in MFT properties
From IBM® WebSphere® MQ 7.5, it is possible for environment variables to be used in Managed File Transfer properties that represent file or directory locations. This allows the locations of files or directories used when running parts of the product, to vary depending on environment changes. For example, which user is running the process.
The following properties accept file or directory locations
and can therefore contain environment variables:
agentSslKeyStoreagentSslKeyStoreCredentialsFileagentSslTrustStoreagentSslTrustStoreCredentialsFilecdNodeKeystoreCredentialsFilecdNodeTruststoreCredentialsFilecdTmpDircdNodeKeystorecdNodeTruststorecommandPathconnectionSslKeyStoreconnectionSslKeyStoreCredentialsFileconnectionSslTrustStoreconnectionSslTrustStoreCredentialsFilecoordinationSslKeyStorecoordinationSslKeyStoreCredentialsFilecoordinationSslTrustStorecoordinationSslTrustStoreCredentialsFileexitClassPathexitNativeLibraryPathjavaCoreTriggerFilesandboxRoottransferRootwmqfte.database.credentials.file
![[Windows]](ngwin.gif)
Example for Windows
In this example on a Windows system, a user fteuser using an environment variable of USERPROFILE:wmqfte.database.credentials.file=%USERPROFILE%\\logger\\mqmftcredentials.xmlResolves
to the following file path:
C:\Users\fteuser\logger\mqmftcredentials.xml![[AIX]](ngaix.gif)
![[Linux]](nglinux.gif)
Example for AIX® and Linux®
In this example on a UNIX system, a user fteuser using an environment variable of HOME:transferRoot=$HOME/fte/Resolves to the following file
path:
/home/fteuser/fte/