Creating corresponding templates from selected copybooks
You can create multiple templates from a PDS of copybooks by using the Template Build Utility.
The utility builds one template from each selected copybook. The template name is derived from the input member name and any output member mask that you have specified. If you do not supply a template member mask, then the template name is the same as the copybook name. You can run the Template Build Utility in batch or foreground.
To create multiple templates from a PDS of copybooks:
- Open the Template Build Utility panel by selecting option 7.3 from the Primary Option Menu.
- In the Copybook Data set name field, specify the data set name of the copybook data set. The name you specify must be a PDS or PDSE, except for vendor-managed library systems such as Panvalet, CA/Librarian, and so on.
- In the Copybook Member field, specify
the name of a partitioned data set member that
contains a copybook.
If you leave the Member field blank, or specify a member name pattern, File Manager displays a member name list. You can then select the required member by entering S in the Sel field for the appropriate member.
If you select Advanced member selection, then this name constitutes the first name on the member range panel.
- In the Template Data set name field, specify the PDS or PDSE that identifies where the templates are to be stored.
- In the Template Member mask field, optionally specify
a pattern to rename members in the output partitioned data set based
on the member names in the input partitioned data set.
Note: The Member mask works in the same way as the mask you can use when copying data sets. For an explanation of how you can specify a member name mask in the form of a member name pattern, see Renaming members as you copy.
- To run the Template Build Utility in batch, select the Batch execution processing option.
Batch processing produces up to two reports: the Data Set List report (only produced if a concatenated data set is used for input), and the Template Build Report. Examples of each report are shown below.
Note: The Lib column is only displayed when more than one input data set is found. - To replace templates that exist with the same name, select the Replace existing templates processing option.
- To specify a range of members to be selected, rather than a specific or generic member name, select the Advanced member selection processing option.
- To run without showing the member selection list, select the Skip member list processing option. This option is ignored if errors are found (such as duplicate member names due to the rename mask).
Related topics