DSM Template Services Manual

Template Installation Program
DSM Template Services Manual427187-004
5-9
How TEMPLI Merges Template Files
How TEMPLI Merges Template Files
TEMPLI follows certain rules when it merges separate template object files into
resident and nonresident template files.
Check for Duplicate Template Keys
A template key appears in each record of the key-sequenced template object file that
the Template Compiler, TEMPL, produces.
When TEMPLI merges template object files, it checks each templates template key
consisting of a subsystem ID, a token code, a token value, and a template typefor
duplicates. If TEMPLI finds a duplicate template key, it places the latest template in the
template files it produces. That is, it uses the template appearing in the template object
file specified latest on the TEMPLI command lines or in the SYSGEN configuration file.
There are no duplicate template keys within the same template object file because
TEMPL allows only one occurrence of each template key.
Preserving Abbreviated Subsystem ID Specifications
When there is a duplicate template key, TEMPLI normally uses the template in the file
specified latest on the TEMPLI command line or in the SYSGEN configuration file.
However, to preserve an abbreviated subsystem ID specification, if two templates are
derived from an SSNAME statement, and only one template contains a subsystem ID
abbreviation, TEMPLI uses the template with the subsystem ID abbreviation. Whether
this template is in the file specified latest does not matter in this case.
Check for Duplicate Abbreviated Subsystem IDs
While merging files, TEMPLI also checks for duplicate subsystem ID abbreviations
within the files it is merging. If TEMPLI finds the same abbreviated subsystem ID for
two different applications, it returns warning 42.
Merging Template Object Files With Nonresident Template Files
TEMPLI can merge template object files with nonresident template files. This is useful
if you merge a new template object file with an existing nonresident template file and
then use COUP to install the new resident and nonresident template files. However, be
sure to specify the new template object file last. Then, if older templates in the
nonresident template file have the same template key as newer templates, the newer
templates appear in the files instead of the old templates.
Note. The nonresident template file size cannot exceed 400 MB.