getuid (BPX1GUI) — Get the Real User ID
- BPX1GUI
-
- user_ID
Purpose
Use the getuid (BPX1GUI) service to get the real user ID (UID) of the calling process.
Parameters
- user_ID
- (output,INT,4) is a variable where the service returns the real user ID of the calling process.
Usage Note
If this service fails, the process abends.
Example
The following code gets the invoker's real user ID. This example follows the rules of reentrancy.
For linkage information, see Reentrant and Nonreentrant Linkage Examples.
CALL BPX1GUI, Get the real user ID +
(RETVAL), Return value: real user ID +
VL,MF=(E,PLIST) ----------------------------------Related Services
Other callable services related to this service are: