Difference between revisions of "DB TMPDIR"

From Recital Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Used to specify the full path name of a directory to be used by the SYS(3) function for temporary file creation
+
Used to specify a directory to be used for temporary file creation
  
  
Line 8: Line 8:
  
 
==Description==
 
==Description==
The DB_TMPDIR environment variable is used to define a directory that will be used by the SYS(3) function for temporary file creation.  If DB_TMPDIR is not defined, SYS(3) returns a unique file name without path information.  Defining DB_TMPDIR causes this directory to be included in the return value from SYS(3). Please note that the DB_TMPDIR value should include a trailing directory separator.
+
The DB_TMPDIR environment variable is used to define a directory for temporary file creation.  If [[SET TMPNAMPATH]] is ON (default), SYS(3) and TMPNAM() temporary files will include the full path name of this directory in the values returned.
 +
 
 +
Please note that the DB_TMPDIR value should include a trailing directory separator.
  
  

Revision as of 09:42, 27 July 2011

Purpose

Used to specify a directory to be used for temporary file creation


See Also

SET TMPDIR, SET TMPNAMPATH, SYS(), TMPNAM()


Description

The DB_TMPDIR environment variable is used to define a directory for temporary file creation. If SET TMPNAMPATH is ON (default), SYS(3) and TMPNAM() temporary files will include the full path name of this directory in the values returned.

Please note that the DB_TMPDIR value should include a trailing directory separator.


Example

? getenv([DB_TMPDIR])
/usr/tmp/
? sys(3)
/usr/tmp/000cf30006


Products

Recital, Recital Server