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 » CWF Message Set

Post new topic  Reply to topic
 CWF Message Set « View previous topic :: View next topic » 
Author Message
wmb_nik
PostPosted: Fri Mar 17, 2017 7:24 am    Post subject: CWF Message Set Reply with quote

Newbie

Joined: 17 Mar 2017
Posts: 6

Hi,

Below are details of Message Set
Message Format : CWF1

Logical Properties
Local Element : short
Physical properties
CWF1
Local Element
Physical Representation
Physical Type : External Decimal
Length : 4
Length Unites : bytes
Justification : Left Justify
Padding Character : '0'

Numeric representation
Signed : Clicked
Sign EBCDIC Custom Overpunched : Not Clicked
Sign Orientation : Leading Overpunched

Representation of Null value
Encoding Null : Null Logical Value
Encoding Null Value : 0

Byte Alignment
Byte Alignment: 1 Byte
Leading Skip Count : 0
Trailing skip Count : 0

Above is the Description of a Field A in CWF

i am converting XML to CWF

XML Tag that is mapped to Field A is
<SQNUM>0001</SQNUM>

when i see the Output its is getting written as 1.

Can you please help me is that the correct behaviour is my Definition of field is wrong as i need output as 0001.

Regards
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Mar 17, 2017 7:36 am    Post subject: Re: CWF Message Set Reply with quote

Grand High Poobah

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

wmb_nik wrote:
Can you please help me is that the correct behavior


Probably.

wmb_nik wrote:
is my Definition of field is wrong as i need output as 0001.


What format is the output? File, MQ message, what? How are you viewing this output? If you're just looking in the debugger it will certainly show as 1 not 0001.

You also shouldn't be using CWF in any supported version. Use DFDL.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Mar 17, 2017 7:36 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The behavior is wrong..

You should be using XMLNSC and DFDL...

Otherwise, you need to set the format of the element to match your expected result.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
wmb_nik
PostPosted: Fri Mar 17, 2017 7:42 am    Post subject: Reply with quote

Newbie

Joined: 17 Mar 2017
Posts: 6

Hi,

Thanks for reply

What format is the output? MQ message
When i Debug the field is shown as 0001

Regards
Back to top
View user's profile Send private message
wmb_nik
PostPosted: Fri Mar 17, 2017 7:55 am    Post subject: Reply with quote

Newbie

Joined: 17 Mar 2017
Posts: 6

Broker Version is 7.0
Back to top
View user's profile Send private message
wmb_nik
PostPosted: Fri Mar 17, 2017 7:57 am    Post subject: Reply with quote

Newbie

Joined: 17 Mar 2017
Posts: 6

The message Set was created from cobol Copy Book.
Can you please let me know : - you need to set the format of the element to match your expected result
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Mar 17, 2017 8:02 am    Post subject: Reply with quote

Grand High Poobah

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

wmb_nik wrote:
Broker Version is 7.0


If you're outputting the CWF into an MQ message and it's not 4 bytes wide then I agree with my most worthy associate - the behavior is wrong.

If you were using a supported version of WMB you could raise a PMR and get a fix.

But you're not, so you can't.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Mar 17, 2017 8:04 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

... Also, weren't "External Decimals" some kind of weird packed decimal field? Or was that something else?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Mar 17, 2017 8:17 am    Post subject: Reply with quote

Grand High Poobah

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

mqjeff wrote:
... Also, weren't "External Decimals" some kind of weird packed decimal field? Or was that something else?


No. Hence the availability of overpunching in the definition.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
timber
PostPosted: Mon Mar 20, 2017 10:34 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

The changes of CWF getting the length of an external decimal wrong are pretty small. CWF was a *very* widely used format when the MRM parser was the only way to handle COBOL messages.

I suggest that you re-check carefully and see whether you have made a mistake in interpreting the output. If you are still convinced that there is a defect in CWF then you will need to provide:
- the XML input
- evidence of the contents of OutputRoot.MRM just before the output node. A Trace node is a great way to capture that information.
- the actual output (the *bytes* of the output)
in order to prove your case.
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 » CWF Message Set
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.