GETUID()

From Recital Documentation Wiki
Revision as of 13:43, 23 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Class

Environment


Purpose

Function to get user identity


Syntax

GETUID()


See Also

ACCESS(), CREATE, GETENV(), GETGID(), GETPID(), MODIFY STRUCTURE, PUTENV()


Description

The GETUID() function returns the user number. In UNIX/Linux, this is the user number of the logged in user from the /etc/passwd file. In OpenVMS this is the user number extracted from the UIC of the logged in user from the system authorization file. The GETUID() returns a decimal value. OpenVMS user IDs are stored in octal. You may use the STR() function to convert the OpenVMS value to octal when using the GETUID() function.


Example

use accounts
@2,3 get name
@3,3 get rates;
when getuid() > 100 and getuid() < 200
read


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer