Reference an environment variable using the syntax:
$[{]variable[}].
The variable is expanded (replaced by its value) when the database is loaded. If a string variable and environment variable have the same name, the string variable has precedence.
For example, this execution string prints a file with a banner containing the login name.
EXEC-STRING lp -t$LOGNAME %(File)Arg_1%