If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > l2date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-09, 23:20
Blackprince Blackprince is offline
Registered User
 
Join Date: Nov 2008
Posts: 18
l2date

hi all,

i got recently stuck up with informix XPS

select sid ,
username ,
pid ,
hostname ,
l2date(connected)
from syssessions
order by 5;

674: Routine (l2date) can not be resolved.
111: ISAM error: no record found.


is l2date not present in informix XPS
if not what is the alternative...
got so used to l2date



Thanks in advance .....
Reply With Quote
  #2 (permalink)  
Old 08-27-09, 10:41
Blackprince Blackprince is offline
Registered User
 
Join Date: Nov 2008
Posts: 18
is l2date supported on XPS or i am having some error with my setup?
Reply With Quote
  #3 (permalink)  
Old 08-27-09, 16:21
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,
Please, check on "$INFORMIXDIR/etc/sysmaster.sql" for l2date.

Gustavo.
Reply With Quote
  #4 (permalink)  
Old 08-27-09, 21:26
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
I never work with XPS, I don't know if this will work

Code:
select sid ,
username ,
pid ,
hostname ,
l2date(connected),
dbinfo('utc_to_datetime',connected),
extend(dbinfo('utc_to_datetime',connected), year to day)
from syssessions
order by 5;
Be careful , because the l2date round the result, the dbinfo don't
A example of the output:
Code:
sid           18
username      informix
pid           0
hostname
(expression)  28/08/09
(expression)  2009-08-27 22:16:19
(expression)  2009-08-27

sid           17
username      informix
pid           0
hostname
(expression)  28/08/09
(expression)  2009-08-27 22:16:19
(expression)  2009-08-27
here my locale is pt_BR , because this my date format is DD/MM/YY
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #5 (permalink)  
Old 08-29-09, 01:32
Blackprince Blackprince is offline
Registered User
 
Join Date: Nov 2008
Posts: 18
$INFORMIXDIR/etc/sysmaster.sql doenst contain l2date..
will try dbinfo and update here
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On