The following code calls the GXL4CTL service to change the feature
bits for the
z/OS XML parser.
For the callable service, see
GXL1CTL (GXL4CTL) — perform a parser control function.
AMODE 31 callers use
GXL1CTL example.
**********************************************************
* Setup parameter list to call GXL4CTL. *
* Then call GXL4CTL. *
**********************************************************
* Call GXL4CTL(PIMA, (00)
* CTL_Option, (08)
* CTL_Data, (16)
* Return_Code, (24)
* Reason_Code) (32)
*
LA R9,SAMPLE_PIMA_PTR
LG R9,0(R9)
STG R9,Parser_Parm
SLGR R4,R4
LA R10,SAMPLE_CTL_OPTION
STG R10,Parser_Parm+8
LA R10,SAMPLE_CTL_DATA
STG R10,Parser_Parm+16
LA R10,SAMPLE_CTL_RC
STG R10,Parser_Parm+24
LA R10,SAMPLE_CTL_RSN
STG R10,Parser_Parm+32
*********************************************************
LLGT R15,CVTPTR
L R15,CVTCSRT-CVT(R15)
L R15,72(R15)
LG R15,64(R15)
LA R1,Parser_Parm
BALR R14,R15
:
********************************************************************
* Description of the SAMPLE Structure:
* ********************************************************************
SAMPLE DSECT Memory storage area
SAMPLE_HEADER DS 0D
SAMPLE_EYE_CATCHER DS CL8 eye-catcher string
SAMPLE_RETCODE DS 1F
SAMPLE_RSNCODE DS 1F
SAMPLE_PIMA_PTR DS 1D
SAMPLE_PIMA_LEN DS 1F
SAMPLE_INIT_FEAT DS 1F
SAMPLE_INIT_RC DS 1F
SAMPLE_INIT_RSN DS 1F
SAMPLE_CTL_OPTION DS 1F
SAMPLE_CTL_DATA DS 1F
SAMPLE_CTL_RC DS 1F
SAMPLE_CTL_RSN DS 1F
SAMPLE_TERM_RC DS 1F
SAMPLE_TERM_RSN DS 1F
SAMPLE_FLAGS1 DS 1F
SAMPLE_FLAGS2 DS 1F
SAMPLE_END DS 0X
********************************************************************
NULL_Value DC 1D’0’
CCSID DS 1F
PARSER_PARM DS 16A