Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2013-01-11T11:47:16Z by SystemAdmin
SystemAdmin
SystemAdmin
6772 Posts
ACCEPTED ANSWER

Pinned topic Trailing space ignored in WTX

‏2013-01-10T14:55:14Z |
We have a scenario where part of a copybook string response is segregated into 2 fields – SYSMSG1 and CC-MSG. The cobol layout is as below -

15 SYSMSG.
20 SYSMSG1 PIC X(23).
20 CC-MSG PIC X(56).

Suppose if the string is 'OVERLIMIT - ENTER AGE, COMMENTS, INDICATE "X", AND REVIEW "ROUTE TO EMPLOYEE' it should be segregated as below
SYSMSG1 = 'OVERLIMIT - ENTER AGE, '
CC-MSG = 'COMMENTS, INDICATE "X", AND REVIEW "ROUTE TO" EMPLOYEE'

These cobol copybook is mapped to an XML schema

The contents of SYSMSG1 + CC-MSG is mapped to an xml element”ExplDesc” in the rule.

The final outcome in ExplDesc field is 'OVERLIMIT - ENTER AGE,COMMENTS, INDICATE "X", AND REVIEW "ROUTE TO" EMPLOYEE' which is wrong because the space before ' COMMENTS' is ignored.

I feel that the issue is not with the string concatenation in the rule but the space in('OVERLIMIT - ENTER AGE, ') is ignored in the SYSMSG1 field as it might be considered as a trailing space.However it is just an assumption.

Please advice what might be the cause of this issue and what possible step/s I can take towards its resolution.
Any help is highly appreciated.

Thanks,
Tridip K Sarma
Updated on 2013-01-11T11:47:16Z at 2013-01-11T11:47:16Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6772 Posts
    ACCEPTED ANSWER

    Re: Trailing space ignored in WTX

    ‏2013-01-11T11:47:16Z  in response to SystemAdmin
    Reference : http://www.ibm.com/developerworks/forums/thread.jspa?threadID=467642&tstart=0