RE: Session Id for program
Posted in 1998
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
If you are using OL7 or above you can: select dbinfo("SESSIONID") ....... to get your database session id. > ----------- > Regards, > > Fred Pratt PHONE (806) > 351-2300 x/3660 > Informix Database Specialist FAX (806) 351-2727 > Hastings Entertainment, Inc. EMAIL > prattf@hastings-ent.com > http://www.hastings-ent.com > > > > -----Original Message----- > From: Tim Schaefer [SMTP:tschaefe@mindspring.com] > Sent: Wednesday, March 11, 1998 5:15 AM > To: informix-list@iiug.org > Subject: Re: Session Id for program > > There is a C-language library function that can make you a > unique filename. I don't remember what it's called, but you > can look it up in the C-language books still found in > Many IS shops and book stores. > > Simply link in a C-language module with the appropriate > function call into your 4GL program and your problem should > be solved. To learn more about how to do this simply read > the 4GL manuals. There are also some samples in the iiug.org > archive, and maybe something at my site to get you started. > > Tim > > Tim Schaefer > tschaefe@mindspring.com > http://www.inxutil.com > ICQ:6358805 > #include <4gl.h> > > SH Lim wrote in message <6e54sl$2ne$1@news.xmission.com>... > > > >Hi, > > Is there a way to find out the current session-id for the 4GL > >program that is running ? In my 4GL program, I want to assign the > >session id for the program concatenated with userid for example for > an > >outpur file. This would uniquely define a filename which will be > >removed. > > Any recommendations on unique filenames conventions in 4GL output > > >files ? > > Thanks. > > > > > > > >______________________________________________________ > >Get Your Private, Free Email at http://www.hotmail.com