Re: getting login name in 4GL
Posted in 1996
In article <3190EFDC.271E@segel.com>, mikey@segel.com says...
>
>Tim Schaefer wrote:
>>
>> montgomery f. tidwell wrote:
>> >
>> > Howdy,
>> >
>> > does anyone know how i can get the login name of a User
>> > from within a 4GL program?
>> >
>> > TIA
>> > --
>> > There are three kinds of people in the World. Those who
>> > can count, and those who can't.
>> >
>> Here's two solutions for you:
>>
>> Create a C function:
>>
>[Code Deleted ....]
>>
>> I just tested this with the c4gl and not RDS so it should work, but your
UNIX
>> may vary...It may not fool rlogin, using the current rlogin id instead
of
>> the original user id.
>>
>> :-)
>>
>> --
>>
>That was only one solution. Why not just get the shell environment
>variable?
>($LOGNAME) or ($USER). I believe that Informix has a getenv function.
>No muss no fuss..... ;-)
>
>Or am I missing something?
>
>-Mikey
What about,
select user from systables where tabname matches "systables"