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 » Removing Carriage Return and Line Feed (x0D0A)

Post new topic  Reply to topic
 Removing Carriage Return and Line Feed (x0D0A) « View previous topic :: View next topic » 
Author Message
sboucher
PostPosted: Sat Feb 15, 2003 4:34 am    Post subject: Removing Carriage Return and Line Feed (x0D0A) Reply with quote

Acolyte

Joined: 27 Oct 2002
Posts: 52

I am receiving one large message comprised of many records. The last record of this message I'm receving consistently is blank and is created by a trailing CRLF (x0D0A).

Can MQSI test this record for x0D0A and strip it out.

Thanks
_________________
Scott A. Boucher
Database Administartor
Back to top
View user's profile Send private message Send e-mail
yaakovd
PostPosted: Sat Feb 15, 2003 7:00 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

1. Copy input bitstream to output bitstream "from 1 for length-4".
2. Or you can set last element as UNKNOWN.
But first solution can be done without parsing.
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
sboucher
PostPosted: Sat Feb 15, 2003 7:48 am    Post subject: Reply with quote

Acolyte

Joined: 27 Oct 2002
Posts: 52

Yaakov

I'm too new to MQSI to follow your solutions. Can you elaborate in more detail on your solution 1.

Is copy bitstream the same as setting InputRoot=OutputRoot. Where is this done. A Compute Node?? Where do you set the length.

Thanks
_________________
Scott A. Boucher
Database Administartor
Back to top
View user's profile Send private message Send e-mail
yaakovd
PostPosted: Sat Feb 15, 2003 9:49 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

1. Receive message as BLOB or reset to BLOB using Reset Content node

2. In compute node:

DECLARE I INTEGER;
DECLARE C INTEGER;
SET I = 1;
SET C = CARDINALITY(InputRoot.BLOB.*[]);
WHILE I <= C-4 DO
SET OutputRoot.BLOB.*[I] = InputRoot.BLOB.*[I];
SET I =I +1;
END WHILE;

3. Reset Content to needed format using Reset Content node.
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Sat Feb 15, 2003 12:46 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Select Copy Message Headers only in a compute node.

Code:

DECLARE MSGLEN INT;
SET MSGLEN = LENGTH(InputRoot."BLOB"."BLOB");
SET OutputRoot."BLOB"."BLOB" = SUBSTRING(InputRoot."BLOB"."BLOB" FROM 1 FOR MSGLEN - 2);

_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Removing Carriage Return and Line Feed (x0D0A)
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.