jzhardy
Active User
Joined: 31 Oct 2006 Posts: 139 Location: brisbane
|
|
|
|
I'm having problems getting the XML-GENERATE to render edited numerics correctly.
I have a (large) source structure that contains a variety of numeric edited fields, such as Z(14)9.99 BLANK WHEN ZERO; Z(7)9.99 BLANK WHEN ZERO. etc as well as many PIC X(n) elements.
PIC X(n) elements are being rendered correctly, eg:
Code: |
<some_node></some_node>
<another_node>some text</another_node> |
(no trailing spaces)
but the numeric edited fields are being rendered as, eg:
Code: |
<some_edited_num1><some_edited_num1>
<some_edited_num2> 34.56</some_edited_num2> |
(I don't want leading spaces showing for non-zero content)
so, I can simply redefine my input structure to be all PIC X(n), and add some MOVE statements .
or is there a better option ? |
|