To verify that the current user has security authorization 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.
Use the accesstype argument to specify the type of data set access you want to check. 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 are running RACF or CA Top Secret without GENERIC resources and no volser is specified, you receive a message reporting that the resource has no security protection.
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |