Topic
6 replies Latest Post - ‏2013-01-02T18:59:44Z by SystemAdmin
SystemAdmin
SystemAdmin
403 Posts
ACCEPTED ANSWER

Pinned topic Exception 000529668 while parsing using XMLPARSE(XMLSS)

‏2012-12-24T15:14:55Z |
Good morning learned, wise and gentle folks,

I am preparing a sample for my (more junior) COBOL programmers and get the above exception while parsing with validation
(*XML Parse myXML(1:XMLL) Validating myXSD Processing procedure PP End-XML*)
after the xls is read into memory.
Any ideas where I can find the error description? Unfortunately both COBOL manuals and the XML guide do not give any expalanation on this one.

thank you,

M.U.
Updated on 2013-01-02T18:59:44Z at 2013-01-02T18:59:44Z by SystemAdmin
  • brataj
    brataj
    39 Posts
    ACCEPTED ANSWER

    Re: Exception 000529668 while parsing using XMLPARSE(XMLSS)

    ‏2012-12-24T17:01:31Z  in response to SystemAdmin
    The exception needs to be translated to hex (0008 1504), after which you can look up the lower halfword in the XML System Services manual. It is a tad generic though:

    
    1504 XRSN_OSR_INVALID The data within the OSR is invalid.
    


    I'd suggest trying the VALIDATING WITH FILE variant to verify you built the OSR correctly. If that works, then apparently
    you didn't read the OSR correctly.

    Bernie
    • SystemAdmin
      SystemAdmin
      403 Posts
      ACCEPTED ANSWER

      Re: Exception 000529668 while parsing using XMLPARSE(XMLSS)

      ‏2012-12-24T17:05:27Z  in response to brataj
      Thank you Bernie ... much obliged ... I have a sample working with "File" just wanted to see how the other option works. I am reading in the XLS from USS (with the PATH setting in the DD card) and the buffer is full of X'15' (NewLine) at each and every turn, any suggestions there?

      thank you,

      M.U.
    • SystemAdmin
      SystemAdmin
      403 Posts
      ACCEPTED ANSWER

      Re: Exception 000529668 while parsing using XMLPARSE(XMLSS)

      ‏2012-12-27T16:02:24Z  in response to brataj
      Much obliged ... But how do you go from "000529668" which is the untouched XML-CODE special register to the value you had converted "0008 1504"?

      Thank you,
      M.
      • BillWoodger
        BillWoodger
        83 Posts
        ACCEPTED ANSWER

        Re: Exception 000529668 while parsing using XMLPARSE(XMLSS)

        ‏2012-12-27T23:53:41Z  in response to SystemAdmin
        Select and copy the decimal number into the "paste buffer". Fire up your PC calculator, select "programming" or "scientific" if "programming" not available. Ensure that Dec is current display format. Paste into the box. Select Hex. You see 81504. That is X'00081504'.
        • SystemAdmin
          SystemAdmin
          403 Posts
          ACCEPTED ANSWER

          Re: Exception 000529668 while parsing using XMLPARSE(XMLSS)

          ‏2013-01-02T18:59:08Z  in response to BillWoodger
          Thank you gentlmen ... turns out our MVS guys did not set up yet all my stuff I require (on the USS side) and that is why I cannot run successfully the xsdosrg command.
          OTH, I thought it considerate to write code to convert the decimal return to XML return and reason.
          My displays look now most civilized:
          Unexpected XML event: EXCEPTION Parsing Exception, Return Code 0008 Reason Code 1504

          Happy New Year,

          M.U.
  • SystemAdmin
    SystemAdmin
    403 Posts
    ACCEPTED ANSWER

    Re: Exception 000529668 while parsing using XMLPARSE(XMLSS)

    ‏2013-01-02T18:59:44Z  in response to SystemAdmin
    thank you