RXS_STR()
This subprocedure should be used inside an RXS_Parse() or RXS_ParseJson() parsing subprocedure to convert the parsed data pointer into a character data field.
Subprocedure Prototype
|
Returns the character data field extracted from the Pointer parameter. |
|
Pointer containing character data parsed using an RXS_Parse() parsing subprocedure. |
|
Length of the parsed character data contained in the Pointer parameter. |
Example Code
*--------------------------------------------------------------
* This example code converts the contents of the pData pointer to character
* data and stores it in the field gCelcius.
* This process may be used in a RXS_Parse() parsing subprocedure to convert data
* retrieved from an XML element to character data for further processing.
*--------------------------------------------------------------
H DFTACTGRP(*NO) BNDDIR('RXSBND') ACTGRP(*CALLER)
/copy QRPGLECPY,RXSCB
D gCelcius S 5A Varying
D pData * Value
D pDataLen 10I 0 Value
/free
gCelsius = RXS_STR( pData : pDataLen );
*INLR = *ON;
/end-free