Hi Every one,
I Am having an huge XML message of 4 lakhs bytes which is moving to working storage pic X(400000). And I have to pull the XML tag data from this message.I Cannot parse complete XML as it not required, so I am using UNSTRING to extract the data from PIC X(400000). i have to unstring 80 such tags from message which is CPU consuming. Do we have any options other than UNSTRING to reduce CPU.
Eg:
WS-Message is <AAAA>xxx </AAAA><bbbbb>yyyy</bbbb><ccccc>zzzzzz</ccccc>..... like this of X(400000).
WS-STR-DTL-A = PIX X(20).
UNSTRING WS-Message
DELIMITED BY '<ccccc>'
OR '</ccccc>'
INTO WS-STR-DTL-A
Using above code. I am not able to extract the tag and data. every time its getting <AAAA>xxx </AAAA> into WS-STR-DTL-A.
Could you please help me on this. Is I am missing anything on it.
Thanks,