Using Template Libraries in Place of Individual Template Files
To avoid the need to keep many individual template files, you may
create a template library that contains one or more template members.
If the MEMBER option is specified on the ROUTINE line in the CSL control
file, CSLGEN accesses the specified member of the template library
when building the routine.
Within the template library, template members are separated and
identified by an identification line. This line is a noncomment line
having the keyword TEMPLATE as the first nonblank string on the line.
Following the TEMPLATE keyword is a label that identifies the template.
For example, consider the file TEST TEMPLATE, which contains the
templates shown in Figure 1.
If we want to use the beta template to define the parameter list
for a routine called BETA5, we could do so with the following ROUTINE
line.
ROUTINE BETA5 BETA5 TEST TEMPLATE A (MEM beta
CSLGEN would retrieve the beta template from TEST TEMPLATE and
use it to build BETA5.