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 » verificatin of date value

Post new topic  Reply to topic
 verificatin of date value « View previous topic :: View next topic » 
Author Message
ramukurra
PostPosted: Tue Jan 18, 2005 1:24 pm    Post subject: verificatin of date value Reply with quote

Novice

Joined: 10 Mar 2004
Posts: 18
Location: CT

Hi,


wmqi message flow receiving an XML message.This is going to update the databse .One element in the message is date value.If it is not date value I have to insert a constant date value using ESQL.How can I check that element value is date or not .Any one can guide me I will be glad.

Thank you ramukurra
Back to top
View user's profile Send private message
Ratan
PostPosted: Tue Jan 18, 2005 3:10 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

I think something like this should work.

CAST your value to date. If it is succesfull, that is a date value, so you can proceed. If it is not a date value, a runtime exception is thrown. In you catch path, catch that exception and do the correspoding processing.


I am new to MQSI though. So not sure if this method works, or if there is a better way.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » verificatin of date value
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.