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 -
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.
Tridip K Sarma
This topic has been locked.
1 reply Latest Post - 2013-01-11T11:47:16Z by SystemAdmin
Pinned topic Trailing space ignored in WTX
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-11T11:47:16Z at 2013-01-11T11:47:16Z by SystemAdmin