Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to obtain list of all days in a month using DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
pinomaiulis

New User


Joined: 08 May 2006
Posts: 6
Location: Italy

PostPosted: Wed Nov 22, 2006 4:51 pm    Post subject: How to obtain list of all days in a month using DB2
Reply with quote

Do any one have idea how to obtain list of all days in a month
using DB2 given functions?
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Nov 22, 2006 4:58 pm    Post subject:
Reply with quote

Hi There,

Quote:
how to obtain list of all days in a month


What do u mean by that ?
Please provide example?
Back to top
View user's profile Send private message
pinomaiulis

New User


Joined: 08 May 2006
Posts: 6
Location: Italy

PostPosted: Wed Nov 22, 2006 5:03 pm    Post subject:
Reply with quote

guptae wrote:
Hi There,

Quote:
how to obtain list of all days in a month


What do u mean by that ?
Please provide example?


I would like to obtain all the days of a specific month by a single select.

example:

Select "list of the days"
from sysibm.sysdummy1
where month(current date) = 11
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Nov 22, 2006 5:09 pm    Post subject:
Reply with quote

Hi There,

What do u mean list of days?
Back to top
View user's profile Send private message
pinomaiulis

New User


Joined: 08 May 2006
Posts: 6
Location: Italy

PostPosted: Wed Nov 22, 2006 5:11 pm    Post subject:
Reply with quote

guptae wrote:
Hi There,

What do u mean list of days?


Query Result:

01.11.2006
02.11.2006
03.11.2006
04.11.2006
05.11.2006
06.11.2006
..
..
..
30.11.2006

Thank you
Back to top
View user's profile Send private message
Garpen

New User


Joined: 03 Jan 2007
Posts: 14
Location: Sweden

PostPosted: Mon Jan 08, 2007 5:23 pm    Post subject: Re: How to obtain list of all days in a month using DB2
Reply with quote

Hi
I curious, how should the SQL look like ?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Reg:Displaying the particular month o... bhavana yalavarthi All Other Mainframe Topics 4 Sat Jul 08, 2017 8:13 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts GETMAIN / FREEMAIN versus STORAGE OBT... steve-myers PL/I & Assembler 8 Wed Feb 01, 2017 1:45 am
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us