Difference between revisions of "SET TMPDIR"

From Recital Documentation Wiki
Jump to: navigation, search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET TMPDIR=
 
 
 
==Class==
 
Environment
 
 
 
 
==Purpose==
 
==Purpose==
 
To specify the path to be used by the SYS(3) temporary file name function
 
To specify the path to be used by the SYS(3) temporary file name function
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[SYS()]], [[DB_TMPDIR]]  
+
[[DB_TMPDIR]], [[SYS()]], [[TMPDIR()]]
  
  
Line 23: Line 16:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
set tmpdir to /usr/tmp/
+
set tmpdir to "/usr/tmp/"
 
? sys(3)
 
? sys(3)
/usr/tmp/000cf30006</pre>
+
/usr/tmp/000cf30006
 +
</code>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|TMPDIR]]
 
[[Category:Set_Commands|TMPDIR]]
 +
[[Category:Environment]]
 +
[[Category:Environment Set Commands]]

Latest revision as of 14:28, 1 July 2011

Purpose

To specify the path to be used by the SYS(3) temporary file name function


Syntax

SET TMPDIR TO <expC>


See Also

DB_TMPDIR, SYS(), TMPDIR()


Description

The SET TMPDIR command is used to specify the path to be used by the SYS(3) temporary file name function. The SET TMPDIR command can temporarily override the DB_TMPDIR setting that is set at the beginning of a session and cannot be modified during the session. If neither DB_TMPDIR nor SET TMPDIR are set, the SYS(3) function will return a file name without any path information. With DB_TMPDIR or SET TMPDIR set to a valid path, the return value of SYS(3) will include this path information. Please note that the <expC> should include a trailing directory separator.


Example

set tmpdir to "/usr/tmp/"
? sys(3)
/usr/tmp/000cf30006


Products

Recital Server, Recital