www.krengeltech.com

RXS_updVar

From Wiki

User Guide

Contents

Description

Use this subprocedure to update the contents of a template engine variable defined in a section (e.g. <phone>.:phone:.</phone>)

Prototype

     D RXS_updVar      pr
     D  pName                        30a   const varying
     D  pValue                    65535a   const varying 
     D  pTrim                          n   value options(*nopass)

Parameters

pName
The name of the variable to replace with the value specified in the second parameter. An example of what the variable looks like in the template file would be <phone>.:phone:.</phone> where .:phone:. is the template variable that will be replaced.
pValue
The value to replace the template variable’s place holder. For example, a template variable of .:phone:. may be replaced by the value ‘123-123-1234’. To develop this concept further, using the following template snippet <phone>.:phone:.</phone>, doing an RXS_updVar(‘phone’: ‘123-123-1234’) results in <phone>123-123-1234</phone>.
pTrim
Specify *on for this parameter in order to trim the data of blanks at the beginning and end of the string or *off to maintain the spaces as passed. If the pTrim parameter is not specified a default of *on will be used.

Return value

None.

Notes / Examples

None.