Previous Topic: Creating a ModelNext Topic: Create a Test Syntax Model


Determine the Syntax of the Command

Before you create a syntax model, examine the syntax of the command and decide exactly what you want command limiting to do for you. If you want to log the execution of a command or control who can use it, you can write a simple model. If you want to control who can who can use certain operands or the value of an operand, you must write a complete model.

Listed below is the VSNAP command for the V/SNAP product from VM Systems Group. We use it here as a sample of adding a CP command. For more information about the CA ACF2 for z/ VM interface for V/SNAP, see the Other Products Guide.

The syntax of the VSNAP command is:


VSNAP      USER userid1 [ hexloc1 ][{ -  }  [ hexloc2  ]][ TO*           ]
                        [ 0       ][{ :  }  [ END      ]][ TO userid2    ]
                                   [                    ][ SYSTEM        ]
                                   [ {.{    [ bytecount]][               ]
                                   [        [ END      ]][ FORMAT vmtype ]
                                                         [ DSS           ]
                                                         [ *dumpid       ]
                                                         [ CP            ]
                                                         [ ALL           ]
                                                         [ V=R           ]

0-END TO * are the defaults for the first format. If you do not specify any operands, CP is the default.