Author |
Message
|
kt76 |
Posted: Fri Mar 12, 2004 12:49 am Post subject: CWF issue |
|
|
Acolyte
Joined: 18 Jan 2004 Posts: 52
|
I have created a message set with the CWF format and defined padding characters etc.
I get an XML input, pass it thriugh an RCD and then need to map the i/p to my o/p XML.
In my mapper i drag and drop the appropriate i/p to o/p mappings. I also set the Output message property as CWF. Some fields in my output do not have any mapping as they are extra. When ithis message is put on an o/p queue, i get a CWF writing error.
Is it that i need to give some default value say ' ' for fields that i do not need. I tried doing that and the o/p was fine.
Is there any cleaner way of doing this. |
|
Back to top |
|
 |
rajaram |
Posted: Fri Mar 12, 2004 8:11 am Post subject: |
|
|
Acolyte
Joined: 02 Jan 2004 Posts: 53
|
Hi,
U can set the default value constraint for the element. Suppose u want the element(a string type) to have spaces, set the default value to a single space or to zero if the element is integer.
Hope this helps.. |
|
Back to top |
|
 |
Missam |
Posted: Fri Mar 12, 2004 8:17 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
If you have optional elements in CWF.you need to specify them with empty tags in your compute node ''.other wise it won't work.this is an issue with the MRM in TDS also. |
|
Back to top |
|
 |
fjcarretero |
Posted: Fri Mar 12, 2004 8:21 am Post subject: |
|
|
Voyager
Joined: 13 Oct 2003 Posts: 88
|
Hi,
You can always define default values, so you don't have to specifically set them.
Hope this helps.
Felipe |
|
Back to top |
|
 |
Missam |
Posted: Fri Mar 12, 2004 8:37 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
I Tried to work it out the concept of default values in CSD2 .but it doesn't work.By the way what level of CSD's are you using |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Mar 12, 2004 8:46 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
IamSam wrote: |
I Tried to work it out the concept of default values in CSD2 |
There have been a large number of issues and problems relating to default values fixed since CSD02.
You should really find a way to upgrade to at least CSD03, and preferrably CSD06, as soon as you can.
But none of this has to do with the original question. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|