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 » Invalid format: "2012-10-19T12:49:18'Z" is malform

Post new topic  Reply to topic
 Invalid format: "2012-10-19T12:49:18'Z" is malform « View previous topic :: View next topic » 
Author Message
pkdec
PostPosted: Tue Dec 13, 2022 1:14 pm    Post subject: Invalid format: "2012-10-19T12:49:18'Z" is malform Reply with quote

Acolyte

Joined: 12 Feb 2015
Posts: 66
Location: Canada, QC

SET rMsg.EventTimeStamp = CAST(CURRENT_GMTTIMESTAMP AS CHARACTER);
SET rMsg.EventTimeStamp = SUBSTRING (rMsg.EventTimeStamp FROM 15 FOR 10)||'T'|| SUBSTRING (rMsg.EventTimeStamp FROM 26 FOR 12 )||'Z';

my output is 2012-10-19T08:28:30.862Z in this format, sometime it caught up with below and gives me Invalid format: "2012-10-19T12:49:18'Z" is malformed at "'Z"

2012-10-19T08:28:31'Z

<rMsg>
<EventTimeStamp>2012-10-19T08:28:30.862Z</EventTimeStamp>
<rMsg> -- This is Good

<rMsg>
<EventTimeStamp>2012-10-19T08:28:31&apos;Z</EventTimeStamp>
<rMsg> -- This is Invalid


Thanks in Advance if you have any suggestion please suggest for this issue.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Dec 13, 2022 1:35 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

The issue is obvious, there is an extra single quote

Should it be SUBSTRING (rMsg.EventTimeStamp FROM 26 FOR 8 ) ?
_________________
Glenn
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 » Invalid format: "2012-10-19T12:49:18'Z" is malform
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.