z/OS Security Server RACF Macros and Interfaces
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


REXX RACVAR

z/OS Security Server RACF Macros and Interfaces
SA23-2288-00

The REXX RACVAR function is a RACF® service for REXX execs; it provides information about the running user.

The REXX RACVAR function has four arguments. It provides information about:
USERID
The user ID that is in the ACEE
GROUPID
The group name that is in the ACEE
SECLABEL
The security label that is in the ACEE
ACEESTAT
The status of the ACEE. The function returns NO ACEE, DEFAULT, DEFINED, or UNDEFINED
Below is a sample REXX exec that uses RACVAR to check the USERID, GROUPID, and SECLABEL in the user's ACEE.
 /*  rexx  */
 say "Current ACEE status is " racvar('ACEESTAT') "."
 if  racvar('ACEESTAT') = 'NO ACEE' then
  do
   say ' You have no ACEE defined'
  end
 else
  do
    say "Your user ID is " racvar('USERID') "."
    say "You are connected to group " racvar('GROUPID')"."
    current_seclabel = racvar('SECLABEL')
    if current_seclabel = ' ' then
      do
       say ' You have no SECLABEL defined'
      end
    else
      do
       say "Your SECLABEL is " current_seclabel"."
      end
  end
 return

To execute the REXX RACVAR function, your REXX parameter module must contain an entry for RACF's IRREFPCK directory package which, in turn, supports the RACVAR function. For descriptions of REXX parameter modules and updating and integrating them, see z/OS TSO/E REXX Reference in the topics that describe Programming Services, Function Packages, and function directories.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014