MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

db2 DAYNAME function

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Sun Sep 05, 2004 3:14 am    Post subject: db2 DAYNAME function Reply with quote

hi all,

we have a DAYNAME function which returns a mixed case character string containing the name of the day (e.g., Friday) for the day portion of the argument.

I had tried to use the DAYNAME function but got error.

following is the query :
1) SELECT DAYNAME(CURRENT DATE) AS WEEK_NAME FROM SYSIBM.SYSDUMMY1;

2) SELECT DSN8.DAYNAME(CURRENT DATE) AS WEEK_NAME FROM SYSIBM.SYSDUMMY1;


my other question is is their any SQL query to retrieve the DB2 version being used

Thanx in advn

P.R.Mohanty
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12399
Topics: 75
Location: San Jose

PostPosted: Mon Sep 06, 2004 6:32 am    Post subject: Reply with quote

pzmohnaty,

Please search before posting. This topic has been discussed earlier. Check this link.

http://www.mvsforums.com/helpboards/viewtopic.php?t=2160&highlight=dayname

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group