# RXS_GetComposeBufferLen() Returns the current length of the composed data in the buffer. ## Subprocedure Prototype | Field | Description | |---|---| | ` D RXS_GetComposeBufferLen... D PR 10U 0 Extproc('RXS_GetComposeBufferLen')` | Returns the current length of the composed data in the buffer | ## Example Code ### Ex. 1: Retrieve length of XML from Buffer ```rpgle *-------------------------------------------------------------- * This example code retrieves the composition engine buffer and * length and stores it in the field gXmlRequestLen. *-------------------------------------------------------------- H DFTACTGRP(*NO) BNDDIR('RXSBND') ACTGRP(*CALLER) /copy QRPGLECPY,RXSCB D gXmlRequestLen S 10U 0 /free gXmlRequestLen = RXS_GetComposeBufferLen(); *INLR = *ON; /end-free ```