Previous Topic: Fieldname Argument

Next Topic: Results of Access Queries

Verify Data Set Access

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')
dsname

Specifies the data set to be checked.

accesstype

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:

A

Verify Alloc access to a data set

E

Verify Execute access to a data set

R

Verify Read access to a data set

U

Verify Update access to a data set

W

Verify Write access to a data set

For RACF or CA Top Secret systems, the access type can be:

A

Verify Alter access to a data set

C

Verify Control access to a data set

R

Verify Read access to a data set

U

Verify Update access to a data set

volser

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.