Controlling data definition by application name
The simplest way to implement data definition control is to give one or more applications total control over the use of data definition statements in the subsystem.
Procedure
To control data definition by application name:
Example
- PLANA
- The name of an application plan
- PACKB
- The collection-ID of a package
- TRULY%
- A pattern name for any plan name beginning with TRULY
- TR%
- A pattern name for any plan name beginning with TR
The following table shows the entries that you need in your ART.
| APPLIDENT | APPLIDENTTYPE | DEFAULTAPPL |
|---|---|---|
| PLANA | P | Y |
| PACKB | C | Y |
| TRULY% | P | Y |
| TR% | P | Y |
If the row with TR% for APPLIDENT contains the value Y for DEFAULTAPPL, any plan with a name beginning with TR can execute data definition language. If DEFAULTAPPL is later changed to N to disallow that use, the changed row does not prevent plans beginning with TR from using data definition language; the row merely fails to allow that specific use. In this case, the plan TRXYZ is not allowed to use data definition language. However, the plan TRULYXYZ is allowed to use data definition language, by the row with TRULY% specified for APPLIDENT.