Re: getting login name in 4GL
Posted in 1996
Pierre Roussel — — source: Informix-list mailing list archive (1991-1998)
mtidwell@netcom.com (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. > \\\\//_ Using Informix 4GL 4.10 and higher let user_name = fgl_getenv("LOGNAME") LOGNAME is the system variable initialized when you log on to a UNIX system (echo $LOGNAME) On earlier releases, create a temp table with a single char field, write the restricted 4GL variable USER to the temp table. Select from the temp table into a program variable (i.e. user_name) and drop the temp table. proussel@ix.netcom.com