PDA

View Full Version : Problem mit XML PARSE in ILE COBOL



MikRom
03-08-05, 08:33
Ich habe mich gefreut, daß es in COBOL V5R3 ein Befehl zum Parsen von XML gibt.
Wenn ich aber ein einfaches Beispiel versuche (im Anhang), bekomme ich immer eine Exception.

Die Werte der einzelnen Register sind:

XML-CODE = 000000051 d.h. "The document was encoded in EBCDIC, and the document encoding declaration specified a supported EBCDIC encoding, but the parser does not support the CCSID of the COBOL source member."

Ich weiss nicht warum XML-CODE = 51 ist, d.h. warum der Parser nicht CCSID von meinem COBOL source member unterstützt, wenn meine COBOL-Source-File auch CCSID=37 hat.

XML-EVENT = 'EXCEPTION '

Wenn ich mir den Wert von XML-TEXT anschauen will, bekomme ich folgende Message:

Message . . . . : Space offset X'00FFF000' or X'0000000000000000' is outside
current limit for object &1.
Cause . . . . . : A program tried to set a space pointer or use storage
outside a space, or tried to use an unallocated page in teraspace. The space
class is X'04'. The space class designates the type of space:
00-primary associated space (includes space objects).
01-secondary associated space 0.
02-implicit process space for automatic storage.
03-implicit process space for static storage in activation group mark
X'00000000'.
04-implicit process space for heap identifier X'00000000' in activation
group mark X'00000000'.
05-constant space.
06-space for handle-based heap identifier X'00000000'.
07-teraspace offset X'0000000000000000'.
08-teraspace for OS/400 PASE memory address X'0000000000000000'.
Offset X'00FFF000' only applies to storage outside teraspace.
X'8000000000000000F1D06F2C2E001000' is a pointer to the teraspace page or
the start of the implicit process space for the allocation.

Hat jemand Ahnung was nicht in Ordnung ist ?

MikRom
15-08-05, 09:06
XML PARSE in ILE COBOL V5R3 funktioniert teilweise, wenn man das Dokument kodiert mit CCSID=819 im IFS-Verzeichnis verarbeitet.

Meiner Meinung nach, hat z.Z. diese IBM-Extension in V5R3 noch Bugs und ist noch nicht Reif für den Produktionseinsatz, siehe dazu näher
http://www.tek-tips.com/viewthread.cfm?qid=1101822&page=1