Posted: Tue Jan 18, 2005 1:24 pm Post subject: verificatin of date value
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.
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
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