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 > DB2 > Function MONTHNAME stoped working after LOCAL time has been chaneged on operating sys

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-02-05, 04:51
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Function MONTHNAME stoped working after LOCAL time has been chaneged on operating sys

Hi,

two days ago local time has been changed on operating system from "local time - 1 hour", because local time system has been changed. Now on DB2/Linux390 I got error after executing SQL:

db2 select monthname(current date) from sysibm.sysdummy1
SQL0443N Routine "SYSFUN.MONTHNAME" (specific name "SQL020703081922306") has
returned an error SQLSTATE with diagnostic text "SYSFUN:03". SQLSTATE=38552

db2 select monthname('1.11.2005') from sysibm.sysdummy1
SQL0443N Routine "SYSFUN.MONTHNAME" (specific name "SQL020703081922408") has
returned an error SQLSTATE with diagnostic text "SYSFUN:04". SQLSTATE=38552


db2 select monthname('2005-11-01') from sysibm.sysdummy1
SQL0443N Routine "SYSFUN.MONTHNAME" (specific name "SQL020703081922408") has
returned an error SQLSTATE with diagnostic text "SYSFUN:03". SQLSTATE=38552


This SQL was working ok until the time has been changed!!! What shoud I do to solve the problem?

Thanks,
Grofaty
Reply With Quote
  #2 (permalink)  
Old 11-02-05, 11:30
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
well, 04 means unsupported format and 03 arithmetic overflow.
(db2 ? 38552)

Still, is this a z/OS system funtion ?
I don't have it in V7 and don't find it in the V8 documentation either...

Well, I'd probably try with a rebind.
__________________
Juliane
Reply With Quote
  #3 (permalink)  
Old 11-02-05, 12:00
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
sorry, I did not read carefully: Linux/390 probably belongs to the LUW family and has the function.

Still: I'd go with a rebind.
__________________
Juliane
Reply With Quote
  #4 (permalink)  
Old 11-03-05, 05:00
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
DB2 Linux/390 runs on S/390 (zSeries family) but uses LUW family.
What should I rebind? The SQL does not work in application tha uses dynamic SQL. I have also tried to use DB2 Command Window and run the SQL. In bouth cases I got the same error.
Thanks,
Grofaty
Reply With Quote
  #5 (permalink)  
Old 11-03-05, 06:34
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
Rebind the CLI files at least,
run

db2 bind @db2cli.lst blocking all grant public
db2 bind @db2ubind.lst blocking all grant public

that will refresh the client access and utilities in the database.
the function should be in one of the packages I suppose, and a rebind is like a refresh.

http://publib.boulder.ibm.com/infoce...n/c0004951.htm
http://publib.boulder.ibm.com/infoce...d/r0007866.htm

But - I am not sure that helps, not knowing DB2 on Linux zOS at all.
__________________
Juliane
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