ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Find out a specific day is in the first week of the current

Post new topic  Reply to topic
 Find out a specific day is in the first week of the current « View previous topic :: View next topic » 
Author Message
mymq
PostPosted: Tue Jan 22, 2008 5:50 pm    Post subject: Find out a specific day is in the first week of the current Reply with quote

Centurion

Joined: 01 Mar 2007
Posts: 101
Location: US-Greenwille

Hi,

Thankx a lot for your advance helo.

I have a requirement to find out the specific DAY's availability in the first week of the current year.

Fo ex, in 2008, the first week starts from 1st Jan-5th Jan. I need to find out the availability of Monday in ths first week. In this example, i should get the answer as FALSE.

Incase of Wednesday, i should get TRUE.

Please help me if you guys have any DATE related ESQL code.

Have a great day
_________________
--SRK--
Back to top
View user's profile Send private message Send e-mail
mymq
PostPosted: Tue Jan 22, 2008 5:54 pm    Post subject: Reply with quote

Centurion

Joined: 01 Mar 2007
Posts: 101
Location: US-Greenwille

Sorry, i forgotten to mention the WBIMB version, it is 5.0.
_________________
--SRK--
Back to top
View user's profile Send private message Send e-mail
Bill.Matthews
PostPosted: Tue Jan 22, 2008 8:13 pm    Post subject: Re: Find out a specific day is in the first week of the curr Reply with quote

Master

Joined: 23 Sep 2003
Posts: 232
Location: IBM (Retired)

mymq wrote:
Hi,

Thankx a lot for your advance helo.

I have a requirement to find out the specific DAY's availability in the first week of the current year.

Fo ex, in 2008, the first week starts from 1st Jan-5th Jan. I need to find out the availability of Monday in ths first week. In this example, i should get the answer as FALSE.

Incase of Wednesday, i should get TRUE.

Please help me if you guys have any DATE related ESQL code.

Have a great day


Check out this set of Q&As

http://mqseries.net/phpBB2/viewtopic.php?t=7904&highlight=dayofweek&sid=f6a47344e3fef9ba712ae28c360ebd20

It should help you get started ... of course, if you move to WMB V6 - then you don't need all of the code just to get the day of the week.
_________________
Bill Matthews
Back to top
View user's profile Send private message
mymq
PostPosted: Tue Jan 22, 2008 8:40 pm    Post subject: Reply with quote

Centurion

Joined: 01 Mar 2007
Posts: 101
Location: US-Greenwille

Hi thankx a lot.


But, i have seen this code. But, it is having some bug is there. It does not give correct answer always.

Let me know if you have any other code.

Thankx a lot once again.
_________________
--SRK--
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Jan 23, 2008 1:14 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mymq wrote:
But, i have seen this code. But, it is having some bug is there. It does not give correct answer always.


What bug? What happens? What happens when you try and fix it?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Find out a specific day is in the first week of the current
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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.