How can I get the local username?

Question ID : 210
Created on 2013-09-23 at 5:26 AM
Author : Veryant Support [support@veryant.com]

Online URL : http://support.veryant.com/support/phpkb/question.php?ID=210



The library routine C$GETENV can be called on a local or client machine to get the user name.
Here's an example.

The "Client" keyword will be ignored if the program isn't running in thin client mode:

    move "user.name" to varname
    call client "C$GETENV" using varname, ws-username



Back to Original Question