PL/I

PL/I

PL/I

 View Only
Expand all | Collapse all

XMLCHAR pl1 builtin function support for DBCS

  • 1.  XMLCHAR pl1 builtin function support for DBCS

    Posted Tue October 30, 2018 10:56 AM

    Hello,

     

    Am using XMLCHAR PL1 built-in function to generate XML in one of my application

    It worked so good and quick so far, and now our application started handling DBCS characters. XMLCHAR function is behaving a little bit different when handling DBCS data..

     

    It is not recognizing the DBCS data and couple of places it treats the DBCS as single byte data and that is converted as a special character <. Which is then translated as &lt; during PL1 xml generation.. Is there anyway we can let PL1 know that is a DBCS characters.. ?

    For eg -

    Actual DBCS DUMMY1 data --> 東京都千代田区大手町 1-3-2

    ==> DUMMY1 printed in single byte in PL1 displays = '.áïáÍá|çFáèáßã<áÁ  â1Z3â1â5Z3â5. 

    ==> Converted during XMLCHAR <DUMMY1>.áïáÍá|çFáèáßã&lt;áÁ  â1Z3â1â5Z3â5.</DUMMY1>

     

    Thanks in advance.

    Jeeva_S35


  • 2.  Re: XMLCHAR pl1 builtin function support for DBCS

    Posted Tue October 30, 2018 05:20 PM

    Hi Jeeva,

     

    Unfortunately, XMLCHAR must contain only computational data, that is, only string and numeric data. GRAPHIC and WIDECHAR elements are not supported. See https://www.ibm.com/support/knowledgecenter/en/SSY2V3_5.2.0/com.ibm.ent.pl1.zos.doc/lr/lsh-xmlchar.html. If you would like to request that this feature be added, please open a Request for Enhancement (RFE): https://www.ibm.com/developerworks/rfe/execute?use_case=changeRequestLanding&BRAND_ID=352&PROD_ID=699&x=15&y=8.

     

    Regards, Nicole

    Nicole Trudeau