Build Template (BLDTPL)

The BLDTPL command aids in composing RPG-XML Suite template (*.tpl) files. These are then converted using the CRTRPGTPL Command, which are in turn used with the Template/Composition Engine subprocedures (RXS_StartComposeEngine(), RXS_ComposeSection, RXS_ComposeVariable(), and RXS_GetComposeBuffer()) to compose XML documents.

Note: You will need to make manual modifications to the generated .tpl file prior to using it with the CRTRPGTPL Command.

Please follow our example on Creating an RXS Template to understand this process.

Parameters

XML Input Stream File (SRCSTMF)

This is a required parameter.

Provide the fully-qualified file path to your sample XML document in the IFS

Possible Values:

character-value
IFS path to XML file that will be read to generate the template file.

Template Output Stream File (OUTSTMF)

This is a required parameter.

Specify the fully-qualified file path to the output stream file in the IFS.

Possible Values:

character-value
IFS path where the .tpl file will be written.

Number of Spaces to Indent (INDENT)

Specify how many spaces should be used when indenting nested elements in the generated .tpl file.

Possible Values:

numeric-value
Number of spaces used for indentation.