Difference between revisions of "GETGID()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to get group identity | Function to get group identity | ||
Line 12: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[ACCESS()]], [[CREATE]], [[GETENV()]], [[GETPID()]], [[GETUID()]], [[MODIFY STRUCTURE]], [[PUTENV()]], [[STR()]] | + | [[ACCESS()]], [[CREATE]], [[GETENV()]], [[GETGRNAM()]], [[GETPID()]], [[GETUID()]], [[MODIFY STRUCTURE]], [[PUTENV()]], [[STR()]] |
Line 26: | Line 22: | ||
@2,3 get name | @2,3 get name | ||
@3,3 get rates; | @3,3 get rates; | ||
− | when getgid() > 100 and getgid() < 200 | + | when getgid() > 100 and getgid() < 200 |
read | read | ||
</code> | </code> | ||
Line 32: | Line 28: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Environment]] | ||
+ | [[Category:Environment Functions]] |
Latest revision as of 16:11, 2 December 2009
Purpose
Function to get group identity
Syntax
GETGID()
See Also
ACCESS(), CREATE, GETENV(), GETGRNAM(), GETPID(), GETUID(), MODIFY STRUCTURE, PUTENV(), STR()
Description
The GETGID() function returns the group number of the user. In UNIX/Linux, this is the group number of the logged in user from the /etc/passwd file. In OpenVMS, this is the group number extracted from the UIC of the logged in user from the system authorization file.
The GETGID() function returns a decimal value. OpenVMS group user IDs are stored in octal, however you may use the STR() function to convert the decimal value to octal.
Example
use accounts @2,3 get name @3,3 get rates; when getgid() > 100 and getgid() < 200 read
Products
Recital Server, Recital