Editing templates

You can edit existing data set templates that are defined by the TEMPLATE utility. For example, you can change the pattern for the data set name, the device type, the unit, and other data set attributes.

Procedure

To edit a template:

  1. On the DB2 Administration Menu (ADB2) panel, specify option 5, and press Enter.
  2. On the Utility generation using LISTDEFs and TEMPLATEs (ADB25) panel, specify the TEMPLATE control table that contains the template definition:
    Figure 1. Utility generation using LISTDEFs and TEMPLATEs (ADB25) panel
    ADB25 min ----- DD1A Utility generation using LISTDEFs and TEMPLATEs ---- 00:33
    Option ===>                                                                    
                                                                                   
       L - Manage LISTDEFs                                   DB2 System: DD1A      
       T - Manage TEMPLATEs                                  DB2 SQL ID: ADM001     
      TU - Specify TEMPLATE usage                                                  
                                                                                   
      CL - Create LISTDEF control table                                            
      UL - Upgrade LISTDEF control table                                           
      CT - Create TEMPLATE control table                                           
      UT - Upgrade TEMPLATE control table                                          
                                                                                   
     LISTDEF control table:                                                        
         Table owner . . . DSNACC   >                                              
         Table name  . . . UTLIST            >                                     
                                                                                   
     TEMPLATE control table:                                                       
         Table owner . . . DSNACC   >                                              
         Table name  . . . UTTEMPLATE        >    
  3. Specify option T, and press Enter.
    The TEMPLATEs (ADB25T) panel lists the existing templates defined in the specified control table:
    Figure 2. TEMPLATEs (ADB25T) panel
     DB2 Admin --------- DD1A TEMPLATEs in DSNACC.UTTEMPLATE --- Row 1 to 21 of 21  
     Command ===>                                                  Scroll ===> CSR  
                                                                                    
     Line commands: A - Add  E - Edit  D - Delete                                   
                                                                                    
     Sel   Name               Creator  Remarks                                      
           *                  *        *                                            
     ----- ------------------ -------- ---------------------------------------------
     *     COPYLOC            SYSADM                                                
           COPYREM            SYSADM                                    
     ******************************* END OF DB2 DATA *******************************
    
  4. Issue the E line command next to the template that you want to edit, and press Enter.
  5. On the Utility Template (ADB25TE) panel, modify any of the fields as needed:
    Figure 3. Utility Template panel (ADB25TE)
     DB2 Admin -------------------- DD1A Utility Template -------------------- 11:20
     Command ===>                                                                   
                                                                                    
     Enter name and optional remark.  Press Enter to save.                          
                                                                                    
     TEMPLATE . . . .            (Template name)                                    
     Remark . . . . .                                                               
                                                                                   >
     Common options:                                                                
       UNIT . . . . .            (Device number, type or group name)                
       Device type  .            (DASD or TAPE, default is DASD)        
       DSN  . . . . .                                                               
                                                                   
       Change other common options  . .     (Yes/No)                                
       Change disk options  . . . . . .     (Yes/No)                                
       Change tape options  . . . . . .     (Yes/No)                                
                                                                                    
     Statement  . . . TEMPLATE                                                      
                                                                                    
                                                                                    

    For more information about these fields, see required fields in Adding templates.

  6. Press Enter.
    Your changes are saved.