How do I update or compile an ACF2/DB2 resource rule with the ACF2/ISPF Panels and the TSO ACF command processor for a resource that can be up to 252 characters?
search cancel

How do I update or compile an ACF2/DB2 resource rule with the ACF2/ISPF Panels and the TSO ACF command processor for a resource that can be up to 252 characters?

book

Article ID: 17436

calendar_today

Updated On:

Products

ACF2 ACF2 - DB2 Option ACF2 for zVM ACF2 - z/OS ACF2 - MISC PanApt PanAudit

Issue/Introduction

How to update or compile an ACF2/DB2 resource rule with the ACF2/ISPF Panels and the TSO ACF command processor for a resource that can be up to 252 characters?

 

 

 

Environment

Release: ACF2DB00200-1.3-ACF2-Option for DB2
Component:

Resolution

Both the ACF2/ISPF panels and the TSO ACF Command processor support compiling and updating of ACF2/DB2 resource names that can be up to 252 characters. This can be done by entering the $KEY values across multiple lines.

The ACF2/ISPF panels and the TSO ACF Command processor support compiling and updating of ACF2/DB2 resource names that can be up to 252 characters. This can be done by entering the $KEY values across multiple lines. There is no need for continuation characters and there should be no intervening blanks.

Here is an example of using the ACF2/ISPF panels to decomp a DB2 TYPE(FNC) resource rule that can have a maximum number of 252 characters:

 

$KEY(1234567.901234.6789212.4567893.2345678.4123456.8951234.678961.3456       
78.712345.7898123.567END.DFGGGGG.DFDHHHH.HHHHHHH.RRRRRRR.FFFFFF.FFFFFDD       
GGGGGGG.END)                                                                   
                                                                             
-------------------- CA ACF2 Option for DB2 RULE PROCESSOR ------------------ 
COMMAND===>                                                                   
                                                                             
CA ACF2 RULE SET NAME:                                                        
                                                                             
   $KEY     ===> 1234567.901234.6789212.4567893.2345678.4123456.8951234.678961.3
45678.712345.7898123.567END.DFGGGGG.DFDHHHH.HHHHHHH.RRRRRRR.FFFFFF.FFFFFDDGGGGGG
G.END                                                                           
                                                                             
ACF COMMAND MODE:                                                             
  TYPE   ===> FNC     Resource type (such as DBS, TBL, PLN)                  
  SYSID  ===> SYS1    DB2 subsystem ID                                       
                                                                             
DECOMP RULE BEFORE EDIT===> YES  (YES or NO)                                  
                                                                             
ISPF LIBRARY DATA SET:                                                        
  PROJECT===>              LIBRARY===>                                       
  TYPE   ===>              MEMBER ===>                                       
                                                                             
OTHER PARTITIONED DATA SET (INCLUDE MEMBER NAME):                             
  DATA SET NAME ===> PDS(TEST)                                            
CA ACF2 PROCESSING OPTIONS:                                                   
  CLEAR SESSION RULES ===>NO      (YES or NO)                                
  PURGE ABOVE RULE SET===>NO      (YES or NO)  
  FORCE RULE REPLACE  ===>YES     (YES or NO)  

 

Here is a copy of the rule in a PDS

 

*********************************** Top of Data *****************************
000001 *DB2 RULE 1234567.901234.6789212.4567893.2.... FOR SYSID SYS1 STORED -
000002 BY USER002 ON 09/11/14-14:50                                          
000010 $KEY(1234567.901234.6789212.4567893.2345678.4123456.8951234.678961.345
000011 78.712345.7898123.567END.DFGGGGG.DFDHHHH.HHHHHHH.RRRRRRR.FFFFFF.FFFFFD
000012 GGGGGGG.END)                                                          
000020 $TYPE(FNC)                                                            
000030 $SYSID(SYS1)                                                          
000040  UID(*) SERVICE(EXECUTE) ALLOW                                        
********************************** Bottom of Data ***************************
 
* How to decompile an existing ACF2/DB2 long name resource rule from TSO ACF                             
 
set db2(fnc) sysid(sys1)                                                        
DB2                                                                           
decomp 1234567.901234.6789212.4567893.2345678.4123456.8951234.678961.345678.7123
45.7898123.567END.DFGGGGG.DFDHHHH.HHHHHHH.RRRRRRR.FFFFFF.FFFFFDDGGGGGGG.END     
 
ACFD2102 DB2 RULE 1234567.901234.6789212.4567893.2.... FOR SYSID SYS1 STORED BY
SECADM ON 09/11/14-14:50                                                    
 
$KEY(1234567.901234.6789212.4567893.2345678.4123456.8951234.678961.345678.71234
5.7898123.567END.DFGGGGG.DFDHHHH.HHHHHHH.RRRRRRR.FFFFFF.FFFFFDDGGGGGGG.END)     
$TYPE(FNC)                                                                    
$SYSID(SYS1)                                                                  
UID(*) SERVICE(EXECUTE) ALLOW                                                
 
ACFD2101 TOTAL RECORD LENGTH= 310 BYTES, 7 PERCENT UTILIZED                   
DB2                                                                           
                  
* How to complile a new ACF2/DB2 long name resource rule from TSO ACF
 
set db2(fnc) sysid(sys1)  
DB2                                                                           
comp                                                                            
ACFD2010 DB2 COMPILER ENTERED                                                 
                                                                             
. $KEY(AA34567.901234.6789212.4567893.2345678.4123456.8951234.678961.345678.71
2345.7898123.567END.DFGGGGG.DFDHHHH.HHHHHHH.RRRRRRR.FFFFFF.FFFFFDDGGGGGGG.END)  
. $TYPE(FNC)                                                                  
. $SYSID(SYS1)                                                                
.  UID(******USER001) SERVICE(EXECUTE) ALLOW                                  
.                                                                             
ACFD2051 TOTAL RECORD LENGTH= 326 BYTES, 7 PERCENT UTILIZED                   
DB2 

 

Details on using the ACF2/DB2 ISPF panels can be found in the CA ACF2 Option for DB2 Administration Guide in Chapter 7: Writing Rules section 'How Do You Maintain Rules Using ISPF?'. Details on managing ACF2/DB2 resource rules using the TSO ACF Command processor can be found in the same Chapter 7 in section 'How Do You Maintain Rules?'.