Skip to content

Environment

Environment variables in kdb+ and q keywords for getting and setting them.

Variables

Kdb+ refers to the following environment variables.

QHOME

$HOME folder searched for q.k and unqualified script names

QLIC

$HOME folder searched for k4.lic or kc.lic license key file

QINIT

q.q additional file loaded after q.k has initialised

LINES, COLUMNS

supplied by OS, used to set \c

Keywords

getenv

Get the value of an environment variable

gtime

UTC equivalent of local timestamp

ltime

Local equivalent of UTC timestamp

setenv

Set the value of an environment variable

environment sections in namespaces .Q, .z