ue.50bb

User Exit/BASIC Program, Releases: AP, AP 6.2, OA/RT, R83 3.1, and R83 2.2

Returns the port number, user-id and current account name.

Syntax

result = oconv('{[a|u|p]}{%pib}', 'u50bb')

Description

returns the port number, user-id and current account for this process, just like the TCL 'who' command.

On releases of AP 6.2 or higher (or an older release with a suitable patch), a specific portion of the who information may be requested. If the conversion value begins with the character 'a', 'u', or 'p', then only the account, user, or pib will be returned respectively.

The data for another pib may be obtained by putting a '%' character followed by the pib number in the conversion value.

Example

a = oconv('', 'u50bb')
On R83 implementations, 'a' contains '0 SYSPROG' if the
current process was port 0 in SYSPROG.

In AP, 'a' contains '0 bob dm' if the current user-id is
'bob' and the current account name is 'dm'.

a = oconv('a','u50bb')
'a' contains the current account.

a = oconv('u%3','u50bb')
'a' contains the user ID for pib 3.

See Also

Command Name Type Description
basic.user.exits User Exit List of Pick/BASIC user exits.
ue.60bb User Exit Returns the user-id (in AP) and account name.
tcl.who Verb: Access TCL command which shows the port.number, the user id and the account name.
ue.31ad User Exit Returns the current port number.
ue.000e User Exit Gets the name of the currently logged-to account.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.