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 » Converting signed ebcidic values to integers

Post new topic  Reply to topic
 Converting signed ebcidic values to integers « View previous topic :: View next topic » 
Author Message
alaychem
PostPosted: Mon Jun 13, 2016 4:41 am    Post subject: Converting signed ebcidic values to integers Reply with quote

Acolyte

Joined: 10 Feb 2016
Posts: 66

Hi all

Is there an "easy" way to convert signed ebcidic recived as BLOB to integers in ESQL?

I know I could do it manually with string conversion methods(eg. replace c0 with f0), but is there a way to use CAST function to handle it?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 13, 2016 4:52 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Use a DFDL model.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
alaychem
PostPosted: Mon Jun 13, 2016 4:57 am    Post subject: Reply with quote

Acolyte

Joined: 10 Feb 2016
Posts: 66

Well, that was the first solution of course.

the problem is, that the guy that sends me the BLOB sends also unconvertable characters in the BLOB , and he dememds that I will ignore the "garbdge".

so DFDL parsing is not an option .
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 13, 2016 5:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'll wait for timber to correct me, but you should be able to model any set of bytes with dfdl, as long as you mark the "bad" sections so that they aren't treated as anything other than bytes.

In terms of getting the message somewhere that your DFDL can be applied, you'll have to configure your input node not to do any data conversion.

And also explain to the other person's management chain that they are creating and maintaining broken software that adds significant risk to the functions being exposed.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
alaychem
PostPosted: Mon Jun 13, 2016 5:35 am    Post subject: Reply with quote

Acolyte

Joined: 10 Feb 2016
Posts: 66

That actually worked pretty well... ty.

About the other guy... the problem with working at big, old organizations is that you have to work with big (ego), old (and fixed minded) people.

Thanks again.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 13, 2016 5:38 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

alaychem wrote:
the problem with working at big, old orginazations

I might know something about that.

But "risk" and "management" are usually words that produce change.
_________________
chmod -R ugo-wx /
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 » Converting signed ebcidic values to integers
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.