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 IndexWebSphere Message Broker SupportBLOB first value comparison ex: X'F1' compare F

Post new topicReply to topic
BLOB first value comparison ex: X'F1' compare F View previous topic :: View next topic
Author Message
leopucci
PostPosted: Tue Dec 26, 2017 11:51 am Post subject: BLOB first value comparison ex: X'F1' compare F Reply with quote

Apprentice

Joined: 09 Nov 2017
Posts: 26

Hey there!

Does anyone knows how to compare the first letter of the pair on the blob?

I am trying to distinguish ebcdic from ascii.
I want this to be cpu friendly, so i will not convert the data do DFDL, at first i will filter out some messages based on the beginning of the data.

To do so, i want to detect the first letter, if start with F (F1, F2, ETC) i know that is ebcdic.
If starts with 31,32,33 i know that is ascii..

The problem is that did not succeeded making substring on blob in the first value. (X'F1')

Any clues?

Thanks
Pucci
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Dec 26, 2017 1:28 pm Post subject: Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19498
Location: LI,NY

It gets more complicated... You also need to make the distinction between
'F1' and 'F1' where there is in fact no 'F1' value

example x'6F1F' ...

you should really look at InputRoot.Properties.CodedCharSetID ...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
leopucci
PostPosted: Tue Dec 26, 2017 1:30 pm Post subject: Reply with quote

Apprentice

Joined: 09 Nov 2017
Posts: 26

fjb_saper wrote:
It gets more complicated... You also need to make the distinction between
'F1' and 'F1' where there is in fact no 'F1' value

example x'6F1F' ...

you should really look at InputRoot.Properties.CodedCharSetID ...

Have fun



I want to just make an IF statement...

Code:

IF FIELD = 'f' THEN
--its ebcdic
ELSE
--its ascii
END IF;


But this does not work!
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Thu Dec 28, 2017 11:20 am Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1184
Location: Derby City, USA

This looks like an IIB topic and not General.

Is there a reason you are resistant to fjb_saper's answer?
Back to top
View user's profile Send private message AIM Address
bruce2359
PostPosted: Thu Dec 28, 2017 1:15 pm Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 7879
Location: US: west coast, almost. Otherwise, enroute.

Moved to Broker forum.
_________________
I would tell you a UDP joke, but you might not get it.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 02, 2018 6:30 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 24690
Location: Ohio, USA

JosephGramig wrote:
This looks like an IIB topic and not General.

Is there a reason you are resistant to fjb_saper's answer?





A simple IF to check if the CCSID is an EBCDIC one is the simple answer to this requirement.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportBLOB first value comparison ex: X'F1' compare F
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.