CHANGE SETSECURITY [ DBChange Plus User's Guide ] MPE/iX 5.0 Documentation
DBChange Plus User's Guide
CHANGE SETSECURITY
Changes user class access to a data set.
Syntax
{R}
CHA[NGE] SETSE[CURITY] DataSetName UserClassNumber {W}
{N}
Parameters
DataSetName is the name of a data set whose security is to be
changed.
UserClassNumber is a user class number defined in the PASSWORDS part
of the schema. User class numbers are used in the
schema read and write class lists to define access to
each data set and data item.
R allows read-only access to the data set.
W allows write access to the data set (and implied read
access).
N denies any access to the data set.
Description
Use this command to change user class access to a data set. To deny all
users access, create a null (or empty) list (/), which allows only the
creator to access the data set.
When making changes to data set security, remember that access to data
items within data sets may be further enhanced or restricted by data item
security.
Example
>change setsecurity inventory 18 w
>change setsecurity inventory 12 n
In this example, user class 18 is given write access (and implied read
access) to the data set INVENTORY. User class 12 no longer has any access
to the data set.
Before the changes, the INVENTORY data set entry in the schema looks like
this:
NAME: INVENTORY ,D(12,14/13); <---- security to be changed
ENTRY: STOCK# (PRODUCT ),
ONHANDQTY ,
SUPPLIER (!SUP-MASTER ),
UNIT-COST ,
LASTSHIPDATE ( DATE-MASTER ),
BINNUM ;
CAPACITY: 450(15);
After the changes, the data set entry in the schema looks like this:
NAME: INVENTORY ,D(14/13,18); <---- security changed
ENTRY: STOCK# ( PRODUCT ),
ONHANDQTY ,
SUPPLIER (!SUP-MASTER ),
UNIT-COST ,
LASTSHIPDATE ( DATE-MASTER ),
BINNUM ;
CAPACITY: 450(15);
MPE/iX 5.0 Documentation