Re: getting login name in 4GL
Posted in 1996
tabid = 1 IS systables and tabid is the KEY to systables! See my prior postings concening this. ------------------------------------------------------------------------- Cheryl Kendricks Internet:cherylk@prod1.jcdc.doleta.gov OR kendric@gwysmtp.jcdc.doleta.gov DTSI, Inc. Voice: 1-800-598-5008 Database Administrator - DOL Job Corps San Marcos, Texas On 8 May 1996, Joao Natal wrote: } 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" } }