Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Username?

Status
Not open for further replies.

sagn

Programmer
Jun 7, 2001
166
US
Hi,

Using CVF6, How can I retrieve the name of the user
that is logged in without asking them directly?

I'd like to create files with the username appended
to it but do not know how to get that information
from the system.

thanks

diane
 
Just use the GETLOG subroutine from the Portability library as in the following code:

Code:
     [blue]use[/blue] DFPORT
     ...
     [blue]character(256)[/blue] [i]name[/i]
     [blue]call[/blue] GETLOG([i]name[/i])
     ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top