Previous Topic: Request General Resource DataNext Topic: OPSENQ Function


Requestcode Values

This function call verifies that the current user has access to a generalized resource. The requestcode argument specifies the type of access to be verified. If you omit this argument, OPS/REXX uses the default value R (Read access).

For CA ACF2 systems, the request code can have one of the following values:

Code

Description

R

Verify Read access to resource

A

Verify Add access to resource

D

Verify Delete access to resource

U

Verify Update access to resource

For RACF systems or CA Top Secret, the request code can have one of the following values:

Code

Description

R

Verify Read access to resource

A

Verify Alter access to resource

C

Verify Control access to resource

U

Verify Update access to resource

For CA ACF2, RACF, or CA Top Secret, if the specified access to the resource is allowed, OPS/REXX returns the string ALLOW. Otherwise, OPS/REXX returns an error message:

RESOURCE NOT PROTECTED
RESOURCE ACCESS DENIED

Note: For more information about generalized resources, see the appropriate CA ACF2, RACF, or CA Top Secret guides.