Dave,
   You're correct that Ken's "LINK userid" is more elegant than my proposed
"SPOOL PUN userid".  However, I would urge you NOT to use the "QUERY
userid"-based solutions.  That's relying on the fact that the userid doesn't
match any existing parameter to the CP QUERY command.  If the userid you're
testing matches a parameter of the command or if IBM should enhance the
command adding a parameter that matches a userid you're testing, the test
will produce "misleading results."

                                        Marty

> -----Original Message-----
> From: The IBM z/VM Operating System 
> [mailto:[EMAIL PROTECTED] On Behalf Of Dave Hansen
> Sent: Thursday, October 25, 2007 11:05 AM
> To: [email protected]
> Subject: Re: How can I find if a user is defined in the 
> directory (without looking!)?
> 
> Hello again,
> 
>    Thank you for all your suggestions.  I did like Kens 
> response with the diagrc in it.  I did some testing and for 
> simplicity I favor just checking
> the return code on the CP Q userid.  I had forgotten about 
> our friend EXECIO that stacks the output and I liked the PIPE 
> that put the results in a
> stem variable.
> 
> 
>       Thanks again to all,  Dave Hansen
> 

Reply via email to