On Fri, 27 Oct 2017 07:39:00 +0000, Baguley, Nicholas: Absa <[email protected]> wrote:
>When you use PARM andonot SYSTSIN it doesn’t seem to ECHO input/command. I >tried it before posting so as not to incur wrath of LIST After John also confirmed that, I thought some more and realized that it probably works that way so that a TSO logon proc can invoke some "pre-processing" CLIST or REXX exec to perform setup, without the setup command echoing to the user's screen. >Walt - correct.. the userid of the mother task is not authorised to ADDUSER. >The ATTACH is done in supervisor state. Don’t try this at home type stuff But that doesn't resolve all the problems. Presumably, you're creating an ACEE for the user that you want to use for running the command. But how do you get that ACEE attached to the TCB that runs the ADDUSER command? Attaching the ACEE to the TCB for the TMP TCB that you attached won't do the job, as task-level ACEEs don't propagate to subtasks except in one very specific circumstance (WLM servants processing requests from a WLM queue) and you haven't mentioned WLM. Or at least, you haven't mentioned it yet :) So if you're not in that situation (WLM servant, WLM request queueing) then the ADDUSER will run under the address space ACEE as far as I know, and will probably fail for lack of authority, giving you an RC=8. -- Walt ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
