You are here: Development Standards > Routines > General Routines > GENGUSER.PUB

# GENGUSER.PUB

GENGUSER.PUB is a public program that retrieves a user ID and description from the OSUS file, given an associated terminal ID. If a matching entry is not found for the given terminal ID in the OSUS file, the description from the OSDF file is returned instead.

`0050 ENTER TERM$,USERID$,USERDESC$`

Variable | Description
TERM$ | Terminal ID
USERID | The User ID from the OSUS file is returned.
USERDESC$ | The User Description is returned from the OSUS file, or from the OSDF file if not found in OSUS.

Exit Points | Explanation
EXIT | GENGUSER.PUB does not return any errors.