How do I retrieve the userid of the currently logged on user? Do I use the Environ function? Then I need to hard code the location of the UserName variable in the env table?
Cool, thanks. I'll likely have more simple questions as I'm totally new to Windows based programming (if you can call it that). Long time mainframer here.
Just bear in mind that the variable, UserName = Environ("USERNAME"), is the Windows Network logon id. If the user id for the Mainframe App is different, then that variable wont work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.