To verify that the current user has the security authorization they need to access a data set, issue the following version of the OPSECURE function:
var = OPSECURE('D','dsname','accesstype','volser')
Specifies the data set to be checked.
Specifies the type of data set access to be checked. If you omit the accesstype argument, OPS/REXX uses a default of R (Read access).
For CA ACF2 systems, the access type can be:
Verify Alloc access to a data set.
Verify Execute access to a data set.
Verify Read access to a data set.
Verify Update access to a data set.
Verify Write access to a data set.
For RACF or CA Top Secret systems, the access type can be:
Verify Alter access to a data set.
Verify Control access to a data set.
Verify Read access to a data set.
Verify Update access to a data set.
Supplies the volume serial number to be validated. If you do not specify a volser, the argument is blank by default. If you run RACF or CA Top Secret without GENERIC resources and do not specify a volser, you receive a message reporting that the resource has no security protection.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|