# RXS_ComposeSection() This subprocedure writes the named section to the compose engine buffer. **Note**: This procedure will throw an error if it has been called without the composition engine being initialized via [RXS_StartComposeEngine()](https://isupport.katointegrations.com/rxs/3.3/rxs_startcomposeengine.md). ## Subprocedure Prototype ### IBM i 6.1+ | Field | Description | |---|---| | ` D RXS_ComposeSection... D PR Extproc('RXS_ComposeSection')` | | | ` D Section 50A Varying` | The name of the section to be written to the template engine buffer. | ## Example Code ### IBM i 6.1+ #### Example 1: Write a Template Section ```rpgle *-------------------------------------------------------------- * This example demonstrates calling RXS_ComposeSection() to write the template * section 'content'. This section would be defined in the XML template EXAMPLE * like so: * ::content * ... *-------------------------------------------------------------- H DFTACTGRP(*NO) BNDDIR('RXSBND') ACTGRP(*CALLER) /copy QRPGLECPY,RXSCB /copy QRPGLETPL,EXAMPLE /free RXS_ComposeSection( content ); *INLR = *ON; /end-free ```