Create RPG Template (CRTRPGTPL)

Use this command to create a RPG version of any template files needed for your program. Starting with version 3.0 of RPG-XML Suite, you no longer reference template files in the IFS at runtime. Instead, use this command to convert the stream file to an RPG version of the template. The RPG source is created for you from the template, and if the template should ever change, you will need to re-run this command and recompile your RPG program.

If you don’t currently have an RXS template file, you will need to use BLDTPL to build one.

Parameters

Stream file (STMF)

This is a required parameter.

Specifies the full path of the IFS stream file built manually or with the BLDTPL Command.

Possible Values:

character-value
Qualified filepath of IFS stream file.

Source file (FILE)

Specifies the name of the source and library of the physical file that will contain the generated RPG source code.

Possible Values:

character-value
Name of the source physical file in which the template member will be generated.

Member (MBR)

The source member that with contain the generated RPG source code. Note that the default value of this parameter - *FIRST - is a placeholder and must be overwritten.

Possible Values:

character-value
Name of the source member.

Sections DS Name (SECTIONSDS)

The name given to the Sections data structure in the generated code. Setting this value allows the section and variable data structures to be qualified, and is recommended.

Possible Values:

*NONE
No name is given to the Sections data structure.
character-value
This name will be assigned to the Sections data structure.

Variables DS Name (VARSDS)

The name given to the Variables data structure in the generated code. Setting this value allows the section and variable data structures to be qualified, and is recommended.

Possible Values:

*NONE
No name is given to the Variables data structure.
character-value
This name will be assigned to the Variables data structure.

Coded Character Set Id (CCSID)

The CCSID of the IFS stream file to be processed.

Possible Values:

*JOB
The CCSID of the current job is used.
character-value
The specified CCSID is used.

Trim Template Lines (TRIMLINES)

Control whether leading and trailing whitespace will be trimmed from template lines. Preserves carriage returns/line feeds.

Possible Values:

*NO
Whitespace will be preserved.
*YES
Leading and trailing whitespace will be trimmed.