A fix is available
APAR status
Closed as program error.
Error description
Environment: z/OS WDI 3.3 CICS * When attempting to reprocess XML data from Document Store using EDI we encounter a AM0005 XML Parser Error in the PRTFILE even though we get a RC=0. Here is an excerpt of the PRTFILE: PERFORM TRANSFORM WHERE HANDLE(20120904155802212825) INTYPE(ST)DIR(R) SYNTAX(X) I get a RC=0, however when I do a CEBR PRTFILE it gives the following: 1Audit Trail Report -DataInterchange Utility- Date: 12/09/05 Time: 12:2 FF0588 Command: PERFORM TRANSFORM WHERE HANDLE(20120904155802212825) INTYPE(ST)DIR(R) SYNTAX(X) Message: AM0005 Severity: 08 An error occurred while parsing the XML document. Message text from parser is: .Fatal Error. :-1:-1: Invalid encoding name "IBM-037". **** File: //'SYS12173.T120542.RA000.IVA10395.TRANSO.H01' Line: 555 Func: Amm_Parser::ReadErrMsgToBuf(char *, shor Message: AM0005 Severity: 08 An error occurred while parsing the XML document. Message text from parser is: .Fatal Error. :1:1: Content is not allowed in prolog. **** File: //'SYS12173.T120542.RA000.IVA10395.TRANSO.H01' Line: 555 Func: Amm_Parser::ReadErrMsgToBuf(char *, shor Message: AM0005 Severity: 08 An error occurred while parsing the XML document. Message text from parser is: .Fatal Error. :1:2: Reference is not allowed in prolog. **** File: //'SYS12173.T120542.RA000.IVA10395.TRANSO.H01' Line: 555 Func: Amm_Parser::ReadErrMsgToBuf(char *, shor Message: CE0050 Severity: 12 Abend ASRA occurred while processing CICS transaction EDIW. A ROLLBACK was issued and a dump with dumpcode EDI1 was taken. Steps to Recreate: 1. import customer's map and compile 2. upload input file to CICS region. 3. usng EDIW place transaction into Document Store using the following command: PERFORM TRANSFORM WHERE INFILE(TSQName) INTYPE(TS) XMLSPLIT(N) XMLEBCDIC(Y) XMLVALIDATE(0) DICTIONARY(CXML12019_ORDER) DOCUMENT(CXML) SYNTAX(X) IFCC(4) SETCC(2) 4. Using EDIW run the following command to reprocess the data that was just placed in the Document Store from step 3: PERFORM TRANSFORM WHERE HANDLE(Handle_Number) INTYPE(ST)DIR(R) SYNTAX(X) 5. Review prtfile generated from step4 and you will see the AM0005 error messages. Files on RALVSK: v1mikeg.pmr72155.eifile Customer's map v1mikeg.pmr72155.xmlin input file Keywords: AM0005 XML Parser Error EDIW cics wdi wdi3.3 wdi33 ibm-037
Local fix
Problem summary
AM0005 XML parser error when reprocessing XML data from the document store using EDIW in CICS.
Problem conclusion
If a DT translation occurs in CICS with XML as input, and then the XML data is retranslated in CICS from the document store using INTYPE(ST), the AM0005 Invalid encoding name "IBM-037" error occurs. This is because IBM-037 is invalid to the XML4J parser. XML4J expects IBM037 rather than IBM-037. After the original translation occurs in CICS the XML data is placed in the document store in table EDIDSDOC, and column CHARENCODING contains IBM-037. It is this value that is passed to XML4J as the source encode name during the retranslation. The code will changed to pass IBM037 rather than IBM-037 to the Java parser. Whatever values are stored in the document store are not affected.
Temporary fix
Comments
This is a CICS fix only. No other platform is affected.
APAR Information
APAR number
PM72847
Reported component name
WEBS DI ZOS
Reported component ID
5655I4003
Reported release
330
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-09-13
Closed date
2012-09-24
Last modified date
2012-11-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UK82054
Modules/Macros
CPP EDIEXPSR
Fix information
Fixed component name
WEBS DI ZOS
Fixed component ID
5655I4003
Applicable component levels
R330 PSY UK82054
UP12/10/11 P F210
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.3","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.3","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
22 August 2022