The !PATHTKN() subroutine processes special tokens in a VOC or ACCOUNTS file pathname.
CALL !PATHTKN(outpath, inpath)
Pathnames recorded in the VOC or the QMSYS ACCOUNTS file may include special tokens that represent variable components. The !PATHTKN() subroutine processes a pathname, substituting the expansions for these tokens.
The special tokens are:
The token must be the leading part of the pathname.
The !PATHTKN() subroutine is also defined as a function in the SYSCOM KEYS.H include record:
outpath = PARSE.PATHNAME.TOKENS(inpath)
The entry for the QMSYS account in the ACCOUNTS register is simply
This ensures that the entire system can be moved without needing to update the QMSYS account location.
When using QM installed on a USB flash drive on Windows, creating an account on the USB device sets the ACCOUNTS register entry as
The account is therefore accessible even if the flash drive takes on a different drive letter in later use.