Re: UNIX commands in Perform
Posted in 1995
Michel Behna (mbehna@promus.com) wrote: : In article <3vkrpp$4op@cssun.mathcs.emory.edu> rt10hp@csl.gov.uk (Richard Thomas) writes: : >From: rt10hp@csl.gov.uk (Richard Thomas) : >Subject: UNIX commands in Perform : >Date: 1 Aug 1995 05:23:05 -0400 : >Hi all! : >I am having some problems with users not inputting data correctly, : >and I would like to know who has input each row. I was hoping that I : >would be able to do this in perform, using something like: : >before add of "table name" let id = `whoami` : You can do that particular case by using the "USER" keyword. I don't think "USER" is permitted directly in perform screens (unlike TODAY and CURRENT, which are), unless it's been added to a version after the one I just tried (4.11.UC1). I was able to get: BEFORE EDITADD EDITUPDATE OF date_column LET date_tag = TODAY to compile, but sformbld chokes on: BEFORE EDITADD EDITUPDATE OF char_column LET char_tag = USER A non-c approach is to create a VIEW that selects USER, and link a field on the screen to the view.column. This has been documented before; if the FAQ doesn't provide it let me know and I'll find it (I did it for a client about mumble-mumble years ago). : Other options can be done by adding them to sperform and compiling your own : version. I have done that with a mail application. See the manual for creating : and running customized sperform or fglgo. : >If this was possible, it would put the user's unix id into a column, : >and I would immediately be able to track down any problems. Is there : >any way I can do this, bearing in mind I only have access to I-SQL : >v 4.10, an SE engine, SunOS 4.something and I don't do C !! : >TIA, : >Richard. ======================================================================= Dennis J. Pimple dennisp@informix.com Opinions expressed Senior Consultant -------------------- are mine, and do not Informix Software Inc Voice: 303-850-0210 necessarily reflect Denver Colorado USA Fax: 303-779-4025 those of my employer.