Running a function using a copybook or template (RC or RT)
If you entered the Template Workbench from a View or Edit panel (with the TVIEW command), you can use the Template Workbench to edit the current template or to select or create a new template, and then view the data.
To do so:
- From the View or Edit panel, type
TView
on the Command Line and press Enter.The Template Workbench main panel is displayed, with the details of the currently used copybook and/or template in the relevant fields.
Note: Issuing the TV command followed by a F3 (Exit) or F12 (Cancel) is synonymous to a TV OFF command. You must issue the RC or RT command to resume edit with a template from the workbench. - You
can edit the current template (
E
command), create a new template from the current copybook (CC
command), create a new template from the current template (CM
command) or simply specify a different copybook or template. - Make your editing
choices and then type the
RC
command (to use the copybook) orRT
command (to use the template).The View or Edit panel displays the data, using the newly specified copybook or template.
When you enter RC, you are in effect using a temporary template created from the copybook you specify. You cannot edit this template before the panel is run, and the template is not saved. If you want to edit or save the template, use the CC command, and then use the RT command.
To use RC you must specify the PDS member name of the copybook you want to use. The copybook you specify is validated by compiling it with the compiler. For a description of this process, and information about what you can do if errors occur, see Data description support.
If you use the RT command, the template can be either a permanent one previously saved in a PDS member, or a temporary one created for the current panel using the CC command.