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 » ESQL function available for ..... ?

Post new topic  Reply to topic
 ESQL function available for ..... ? « View previous topic :: View next topic » 
Author Message
my_mqmb
PostPosted: Sun Jan 01, 2012 11:41 pm    Post subject: ESQL function available for ..... ? Reply with quote

Voyager

Joined: 08 Jun 2011
Posts: 84

is there any function in ESQL which returns the last day of the month ??

if it is 28, 29 , 30 or 31 ??

another question is :

How do we use ISLEAPYEAR function ?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jan 02, 2012 12:54 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

As described in the InforCentre, ISLEAPYEAR is a BOOLEAN (true or False) clause on the EXTRACT function.

What options have you tried?

As regards the days in month, once you have the month (via the extract function) it is no more than a simple bit of ESQL to do it for you but you have already thought of that otherwise you would not have thought about the ISLEAPYEAR clause.

I remember learning the rules as a child with something like this.

Quote:

30 days hath September, April, jone and November
All the rest have 31 except February which has 28
unless it is a leap year

Yeah, I know it is not completely correct but in the late 1950's who even cared that 2000 was not a leap year?

What have you tried that is not working?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
my_mqmb
PostPosted: Mon Jan 02, 2012 2:27 am    Post subject: Reply with quote

Voyager

Joined: 08 Jun 2011
Posts: 84

yes i have tried that already but i was thinking if there is a function like in java ..
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jan 02, 2012 3:36 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

my_mqmb wrote:
yes i have tried that already but i was thinking if there is a function like in java ..


IF there is such a function, it is described in the Information Center.

If the Information Centre does not describe such a function, you can easily write one.
Back to top
View user's profile Send private message
my_mqmb
PostPosted: Mon Jan 02, 2012 3:52 am    Post subject: Reply with quote

Voyager

Joined: 08 Jun 2011
Posts: 84

IF EXTRACT ( ISLEAPYEAR FROM dateleapornot )IS TRUE

yes , i wrote it myself , just wanted to check if it existed ..

thnx guys
Back to top
View user's profile Send private message
deepak_paul
PostPosted: Tue Jan 03, 2012 2:32 pm    Post subject: Reply with quote

Centurion

Joined: 04 Oct 2008
Posts: 147
Location: US

mqjeff wrote:
my_mqmb wrote:
yes i have tried that already but i was thinking if there is a function like in java ..


IF there is such a function, it is described in the Information Center.

If the Information Centre does not describe such a function, you can easily write one.

And, you can do one more thing.

You can let Hursley folks know about this to check to see if they can create and include this as a built-in function in the next release of the Broker.
_________________
Regards
Paul
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 » ESQL function available for ..... ?
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.