|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Set to High Values |
« View previous topic :: View next topic » |
Author |
Message
|
bruce2359 |
Posted: Mon Nov 23, 2009 7:05 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Mon Nov 23, 2009 7:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
|
Back to top |
|
 |
wbi_telecom |
Posted: Mon Nov 23, 2009 8:05 am Post subject: |
|
|
 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 |
|
 |
wbi_telecom |
Posted: Mon Nov 23, 2009 8:35 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Mon Nov 23, 2009 9:06 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Why not just set the field to the blob value of x'FF'? |
|
Back to top |
|
 |
kimbert |
Posted: Mon Nov 23, 2009 3:40 pm Post subject: |
|
|
 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 |
|
 |
|
|
|
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
|
|
|
|