The DECOMP subcommand retrieves a command limiting rule set that has been previously compiled and stored. This subcommand is useful for examining, updating, testing, or changing rule sets. You can decompile a rule set at the terminal or into a CMS file.
The DECOMP subcommand has the following syntax.
{ * }
DEComp { ruleid } [ MDLTYPE(|mdltype|mdlmask)]
{ LIKE(rulemask)} [ INTO(filename) ]
When you decompile the rule set into a CMS file, its record length is limited to 80 characters. Any existing rule exceeding 80 characters is broken into continuation lines (signified by a dash (‑) at the end of the line). The compiler still accepts input files from previous releases that have record lengths up to 256 characters.
The DECOMPILE subcommand takes the parameters listed below.
Decompiles the last rule set brought into storage since you established the CMDLIM setting.
Specifies the key of an individual rule set to be decompiled or listed.
Specifies a mask of rule IDs for decompiling a group of rule sets.
Specifies the model type of the rules to be decompiled. If you used the LIKE(rulemask) parameter, you can mask the MDLTYPE, as in DEC LIKE(ATTACH‑) MDLTYPE(‑) INTO(RULE). If you specified MDLTYPE(), CA ACF2 for z/ VM decompiles the rule sets written under previous releases of CA ACF2 for z/ VM.
If you do not define a MDLTYPE, CA ACF2 for z/ VM uses the default as specified in the CMDLIM VMO record.
Specifies the name of a CMS file where the rule set is decompiled. You cannot specify the file type, because a file type of RULE is always assigned.
Below are two examples that show how you can use the DECOMP subcommand. This first example shows how you can use DECOMP to display a rule set on your terminal.
acf ACF set cmdlim CMDLIM decomp spool mdltype(530) ACFpgm762I 530 SPOOL stored by VMISO on 05/28/07‑17:30 $KEY(SPOOL) MDLTYPE(530) CON PURGE UID(****OPR) LOG PRINT COPY ‑ ALLOW PRINT RSCS ALLOW ACFpgm551I Total record length=245 byte ‑ 5 percent utilized CMDLIM
The next example shows how DECOMP can write a rule set into a CMS file. Writing a rule set into a CMS file is very useful because it lets you easily change an existing rule set and then recompile it. It can also save time if you misspell a keyword.
acf ACF set cmdlim CMDLIM dec spool into(rulefile) ACFpgm556I 'rule' rule 'key' stored by 'lid' on 'date' ACFpgm551I Total record length='length' byte ‑ 'percent' percent utilized CMDLIM cms xedit rulefile rule a
Because you did not specify MDLTYPE, this rule was decompiled with the default model as defined in your CMDLIM VMO record (in this case, SP6).
ACFpgm556I 'rule' rule 'key' stored by 'lid' on 'date' $KEY(SPOOL) MDLTYPE(530) CON PURGE UID(****OPR) LOG PRINT COPY ‑ ALLOW PRINT RSCS ALLOW ACFpgm551I Total record length='length' byte ‑ 'percent' percent utilized
To decompile all rules with a particular model type, enter the following command, where mdltype is the model type of the commands you want to decompile:
DECOMP MDLTYPE(mdltype)
To decompile all spool rules, use the command DECOMP SPOOL MDLTYPE( ).
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|