GETENV()
From Recital Documentation Wiki
Revision as of 13:59, 23 March 2009 by Yvonnemilne (Talk | contribs)
Class
Environment
Purpose
Function to get environment information
Syntax
GETENV(<expC>)
See Also
ACCESS(), GETGID(), GETLOG(), GETPID(), GETUID(), PUTENV(), PUTLOG()
Description
The GETENV() function returns the value of the environment variable <expC>. Its main purpose is to pass information into Recital (e.g. from DCL command procedures, or UNIX/Linux shell scripts). In UNIX, Linux and Windows it returns the value of an environment variable. In OpenVMS, it returns the value of a DCL symbol. When used in conjunction with the PUTENV() function, the GETENV() function is very useful for passing parameters to Recital programs spawned in the background.
Example
? getenv("file") /usr/recital/patrons.dbf
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer