Previous Topic: Guidelines for Writing ModelsNext Topic: Compile the Model


Analysis of the VSNAP Model

Users with privilege classes of A, C, or E can execute both formats of the VSNAP command, so guideline number two does not apply.

The first format, USER userid is more specific than the second format, so it is put first in the model.

You can execute the VSNAP command without any operands. The default operand is CP, so that format must be last.

If you do not want to control what user IDs can be forced or to what user IDs the dump is spooled, change the transposition routines on the USERID operands to ANY. Notice that the VMTYPE operand has a transposition routine of ANY and that the DUMPID operand is coded with the REST transposition routine. To control which DUMPIDs can be used, you must code all of the possibilities for the DUMPID in a mutually exclusive list.

The 0-END and V=R operands contain nonalphanumeric characters and are enclosed in single quotes.

Notice where we coded the OPTIONAL and TYPE=DEFAULT operand values. To control the VSNAP command based on the first two operands of the command, you can simplify the model and end up with the following command model:

COMMAND VSNAP
 
   FORMAT CLASS=ACE
       OPERAND USER,4
       OPERAND USERID,TRAN=USER
       OPERAND OTHEROPS,180,TRAN=REST,OPTIONAL
   FORMAT END
 
   FORMAT CLASS=ACE
       OPERAND LIST=((ALL,3),  -
                     ('V=R',3),    -
                     (CP,2,TYPE=DEFAULT))
   FORMAT END
 
COMMAND END