Reputation: 356
I want to do some user management on the mainframe using rexx.
I allready managed to create a user with the following
/*REXX*/
adduser username
exit
I figured out this works because the rexx interpreter passes on every command that is not a rexx command to tso by default and adduser is both a racf command and a tso command with is mapped to racf. With the address command it should be possible to issue commands directly to racf. but when i try
/*REXX*/
address racf search username
exit
i'm getting +++ RC(-3) +++ IBM's TSO/E Reference says "The -3 return code indicates that the host command environment could not locate the command you issued." Since "search" is a valid racf command i think racf is not registered as a command environment. Using sysvar(sysracf) in rexx i allready checked that racf is infact installed and running. Does anyone know how to set up racf as a command environment for rexx or check if it is? Thanks in advance
Upvotes: 1
Views: 2449
Reputation: 356
So i found the very simple solution. I basicly got the syntax of the search command wrong. it has to be
/*REXX*/
search mask(username)
exit
The return code was -3 because the command was invalid. I'm sorry i did not realize that earlier and jumped to false conclusions. Thanks for your help everyone.
Upvotes: 2