Collections are used to collect programs together to simplify program maintenance. Collections are shown as a [TYPE] in the Select Menu. They are created as a new TP program type, CO. Collection names must be unique among all programs. Use the SYSTEM Configuration menu to setup collection names for CREATE.
Collections are enabled by default but can be disabled by setting $COLLECT_ENB to FALSE. Collections are backed up and restored same as other TP programs.
To create a collection, press CREATE in the Select menu and enter a name. In the DETAIL screen, verify the Sub type field is Collection.
Select the collection in the Select Menu. Using the DETAIL screen, cursor to the Collection field and press ENTER. A Collection Editor is used to add or remove existing programs to or from the selected collection. Programs can be in multiple collections. If $COLLECT_CFG.$MULTI_PROG is FALSE, then a program can only be in 1 collection at a time. All types of programs can be added except Process. Process should always belong to a Job which can be added. If $COLLECT_CFG.$ALLOW_PROC is TRUE, then Process can be directly added to a collection.
While a collection is selected, if you create a TP program, it is automatically added to the collection. If you delete a program, you will be prompted to remove it from the collection(s) in which it is contained.
A program can also be added to a collection(s) using the Collection field in the DETAIL screen. In this case, a list of Collections is shown with checkboxes if $COLLECT_CFG.$MULTI_PROG is TRUE. If FALSE, then a dialog box is shown allowing you to select a single collection.
Once a collection has programs, when you select the collection using the ENTER key, it will expand to show all the programs. Use the PREV key to exit the collection. Since collections are only used for organizing other programs, they will not be set as the default program, are not allowed in the TP Editor, and are not executed.
From the Top Menu, TreeView/Select can be selected. This will display the TreeView in the left window and the Select menu in the right window. The 2 windows are linked so when a collection is selected in the TreeView, the Select menu displays the collection and only those programs within the collection. The TreeView will gray any programs in the collection which are not loaded.