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 » Set to High Values

Post new topic  Reply to topic Goto page Previous  1, 2
 Set to High Values « View previous topic :: View next topic » 
Author Message
bruce2359
PostPosted: Mon Nov 23, 2009 7:05 am    Post subject: Reply with quote

Poobah

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

Quote:
to move X'FF into a PIC X(01) field.


I offered this in a previous post:

There's a COBOL reserved word HIGH-VALUES that corresponds to hex 'FF'.
So, MOVE HIGH-VALUES TO field-name.

Did you try it? What was the result?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Nov 23, 2009 7:12 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

wbi_telecom wrote:
The Link that Kimbert has given is no longer valid. Can anyone please give me an updated link


Try an older one:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/ad30715_.htm
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
wbi_telecom
PostPosted: Mon Nov 23, 2009 8:05 am    Post subject: Reply with quote

Disciple

Joined: 15 Feb 2006
Posts: 188
Location: Harrisburg, PA

bruce2359,
I will try it. I was not sure if it was something that I can use in ESQL. I will try it and let you know.
Vitor,
Thanks for sending the updated link

Cheers.
Back to top
View user's profile Send private message
wbi_telecom
PostPosted: Mon Nov 23, 2009 8:35 am    Post subject: Reply with quote

Disciple

Joined: 15 Feb 2006
Posts: 188
Location: Harrisburg, PA

I should have been more clear in my earlier post. I am working with WMB 6.1 and using a compute node to convert a XML message into COBOL copybook format. One of the fields of the copybook requires X'FF (high values). The field is defined as PICX(01). How do I move the high values
into this field using ESQL.
The link that Kimbert had given in the earlier post talks about setting all the fields at the time of copybook import. I do not want all the fields in the copybook to have the high values as default. I just need to populate it for this one field.

bruce2359,
I tried your solution but I do not think it works with ESQL as I got a syntax error. Do you have a ESQL code that's currently running which has this code?

Cheers,
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Nov 23, 2009 9:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why not just set the field to the blob value of x'FF'?
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Nov 23, 2009 3:40 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5543
Location: Southampton

I presume that 0xFF is not normally a valid value for this field - it's an out-of-band value. Otherwise mqjeff's solution ( or some other simple SET statement ) would do the job easily.

In the MRM parser, such values as known as 'Null values'. A null value is respresented in the message tree by a *VALUE* of NULL ( not the same as setting the field to NULL, thus deleting it!).
The CWF parser allows you to specify how a NULL value should be represented in the physical bit stream. In your case, you want it to be a literal byte value of 0xFF.

So, you need to
- In the message definition file, set the Null Handling properties on the element as described here: http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/ad06250_.htm
- In your ESQL, SET myFieldRef VALUE = NULL;

bruce2359 said:
Quote:
There's a COBOL reserved word HIGH-VALUES that corresponds to hex 'FF'.
So, MOVE HIGH-VALUES TO field-name.
Er, two points:
- ESQL is not COBOL
- ESQL is, by design, completely void of any language or format-specific concepts.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Set to High Values
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.