How to list all of the resource rules in my infostorage database

Document ID : KB000025536
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

I would like to know if there is a CA-ACF2 command that allows me to list/DECOMPILE all the resource rules in my INFOSTORAGE database?

Answer:

To list all the resource rules in your INFOSTORAGE database, issue the following CA-ACF2 command:

 ACF
 SET RESOURCE(***)
 DECOMP LIKE(-)

Notes:

  1. This DECOMP command will list each resource rule on your system so there could be a lot of data. You can also issue this command using the ACFBATCH utility. Consult the CA-ACF2 Utilities guide for details on using this utility.

  2. You can also change the mask on the set command so that you can DECOMP all the resource rules for a group. For example all the resource rules with a type code that starts with 'C'. You can also change the mask in the DECOMP LIKE option so that only rules that begin with say 'PRD' are decompiled. This could be done as follows:
        ACF
        SET RESOURCE(C**)
        DECOMP LIKE(PRD-)
    
  3. If you specify 'SET TERSE' before issuing the DECOMP command, then you will get a list of all resource keys. This is useful if you only want to see if a particular resource has a rule record. This is done as follows:
        ACF
        SET TERSE
        SET RESOURCE(***)
        DECOMP LIKE(-)
    
  4. If you specify the above command in TSO, you may not have the opportunity to review each rule since you can not go backward using TSO DECOMP command. You can resolve this by specifying the DECOMP command with the INTO option. This option will create a pds that contains all the rules. Each member will be a resource rule record. Resource Rule keys that have an invalid member syntax(for example a $KEY(AB.CD)) will be assigned a member name. The member name is in the form of: @nnnnnn, where n is the next sequential number. You can also specify a member for these rules by using the $MEMBER option of resource rules. When you issue the command with the INTO option, duplicate members will be overlaid such that the previous entries will be overlaid with the last entry. You can avoid this by specifying a specific type code. This is accomplished as follows:
        ACF
        SET RESOURCE(CKC)
        DECOMP LIKE(-) INTO('dsn')
    
    Consult the CA-ACF2 Administrators Guide for more information related to using the DECOMP command.