Interface to the XML header converter program DFHMAXMI
The CICS SFR interface program invokes a user-defined XML data to COBOL conversion program through a standard interface that is based on the XML Enablement of the Enterprise feature in the IBM Developer for z System z® tool.
Figure 1. Call to user-defined
converter program
WORKING-STORAGE SECTION.
.
,
01 APPLICATION-DATA PIC X(32768) VALUE SPACES.
01 X-XML-INT-LEN PIC 9(9) BINARY.
01 X-XML-INT-TXT PIC X(32768).
01 X-CONVERTER-RETURN-CODE PIC S9(9) BINARY.
01 USER-PARSER-PROGRAM PIC X(08) VALUE SPACES.
.
.
PROCEDURE DIVISION.
.
.
MOVE user-program TO USER-PARSER-PROGRAM.
CALL USER-PARSER-PROGRAM USING APPLICATION-DATA
X-XML-INT-LEN
X-XML-INT-TXT
OMITTED
RETURNING
X-CONVERTER-RETURN-CODE