Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1191
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: 1191
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 Cobol program till a given time or fo... ankita agarwal COBOL Programming 7 Fri May 18, 2018 2:24 pm
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 10 Thu Apr 12, 2018 11:33 pm
No new posts List of jobs ran thru scheduler ddhar All Other Mainframe Topics 1 Tue Mar 27, 2018 4:32 am
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us