Previous Topic: Fieldname ArgumentNext Topic: Results of Access Queries


Verify Data Set Access

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

Specifies the data set to be checked.

accesstype

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:

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 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.