I've run into the same issue all of a sudden. Program works with other files from the same source but 1 particular file fails. Running on 7.5, I tried the change recommended but the file still fails.
Original Message:
Sent: 04/20/24 07:34 AM
From: Barbara Morris
Subject: XML-INTO working great for V7R3. Compiling back to V7R2 not so much.
The problem with the first operand of %XML having CCSID 1208 was only fixed with PTFs for releases 7.3 and up.
https://www.ibm.com/mysupport/s/defect/aCI3p0000008ypLGAQ/dt323485?language=en_US
The circumvention is to pass the first operand as UCS2
... %XML(&UCS2(xmldata) ..
xml-into cmd %xml(%ucs2(xmldata):'case=any +
allowextra=yes allowmissing=yes doc=string +
path=QcdCLCmd/Cmd'); //countprefix=num ccsid=UCS2
------------------------------
Barbara Morris
------------------------------
Original Message:
Sent: Sat April 20, 2024 06:37 AM
From: Patrick Kelly
Subject: XML-INTO working great for V7R3. Compiling back to V7R2 not so much.
The difference in boxes isn't the issue, it is compiling back to V7R2 where the issue pops up. One box is at V7R3, the other at V7R4. Compiling to V7R3 from either box works great.
My jobs and systems are at CCSID 37. I did try a CHGJOB to 65534 as well is others. I've tried various CCSIDs on the variable declaration and in the XML-INTO options.
I did come across that thread and a few others. I had compared the output, but after re-reading the thread, I did compare in hex, and it's the same. Most importantly, I guess, starting with x'3C' and no junk at the end.
I did find a way to get 'something' to work. I isolated the xml-into input to just one parm statement and output to a non-dimensional DS, and V7R2 will output to that. Later I'll try stripping off everything before and after the retrieved parm statements, make multidimensional and see if that works around the issue.
V7R2:



Thanks for the response...Oh, PTFs should all be current as of this year. I poked around anything specific, but couldn't find anything.
------------------------------
Patrick Kelly
------------------------------
Original Message:
Sent: Fri April 19, 2024 06:28 PM
From: Jon Paris
Subject: XML-INTO working great for V7R3. Compiling back to V7R2 not so much.
That problem has appeared previously - there's a thread here that may offer some thoughts
https://stackoverflow.com/questions/17396023/the-xml-parser-detected-error-code-302
Have you checked PTF levels on the two system?
Have you compared the XML strings on both systems?
Are the system and job CCSIDs the same on both boxes? One on 65535 and one on (say) 37 might produce this result.
Jon P.