The priority level is decided to the specification of an environment variable, a startup file, the bsortex command, the bsort command, and the BSORT function.
The priority level is as follows.
Environment variable
bsortex command, bsort command, or BSORT function
Startup file
However, the directory that creates the temporary file and the language used are the following priority levels.
Priority level of the directory that creates the temporary file
tmpfile_tbl of BSRTFILE structure in BSORT function
BSORT_TMPDIR of startup file
tmpdir operand of -option option in bsortex command
Environment variable TMPDIR
Directory of system defaults (/tmp)
Priority level of the language used