Re: LOGON BY who?
Thanks all. ian ... Ian S Worthington ... Dulce et decorum est pro patria mori, sed dulcius pro patria vivere, et dulcissimus pro patria biber. Ergo, bibiamo pro salute patriae.
Re: LOGON BY who?
Christy Brogan wrote: You can do a Q BYUSER userid - *if* you are authorized. The CP QUERY BY USER * command is allowed by a G class user. Only querying the byuser of an ID other than the one issuing the command requires magical powers. :-) (But, I'm willing to admit that with ESMs in the way, YMMV) :-) Don Russell
Re: LOGON BY who?
You can do a Q BYUSER userid - *if* you are authorized. If not, you will receive HCPLBY003E Invalid option - userid With an ESM, I believe you must be in the logonby access list to be able to query byuser. Christine Brogan - TPF/VM Systems Support Information Technology Services Americas Phone: 623-505-5366, Cell: 623-512-5883, IBM tieline 273-4647 Email: [EMAIL PROTECTED] "Ian S. Worthington" <[EMAIL PROTECTED] To SA.NET> IBMVM@LISTSERV.UARK.EDU Sent by: The IBM cc z/VM Operating SystemSubject <[EMAIL PROTECTED] LOGON BY who? ARK.EDU> 01/03/2007 10:44 AM Please respond to The IBM z/VM Operating System <[EMAIL PROTECTED] ARK.EDU> Anyone know any easy way to get the BY userid of a logon to a shared userid? Preferably from REXX, given a choice. Ian Worthington
Re: LOGON BY who?
Ian S. Worthington wrote: Anyone know any easy way to get the BY userid of a logon to a shared userid? Preferably from REXX, given a choice. Ian Worthington address command 'PIPE', 'CP QUERY BYUSER|', 'SPECS W-1|', 'VAR BYUSER' The CP QUERY BYUSER command response conveniently has one of two things as the last word: 1 - the BY USER or 2 - the userid you enquired about. (i.e. No by-user in effect) So, after the above you might do something like 'CP SPOOL CONSOLE TO' byuser without the need for any special decision making to see if a "by user" is really in effect. That's just an example, if you really wanted to that, you'd probably put the whole thing in a single pipe... 'PIPE', 'CP QUERY BYUSER|', 'SPECS W-1|', 'VAR BYUSER|', <== SAVE FOR LATER USE (OPTIONAL) 'INSERT /SPOOL CONSOLE TO / BEFORE|', 'CP'
Re: LOGON BY who?
Query byuser For example: byuser=word(diag(8,'Q BYUSER *'),6) if byuser = 'for' then byuser = '' Mike Harding EDS VM National Capability 134 El Portal Place Clayton, Ca. USA 94517-1742 * phone: +01-925-672-4403 * Fax: +01-925-672-4403 * mailto:[EMAIL PROTECTED] * <mailto:[EMAIL PROTECTED]> (personal) Note: For 2007, I am off on Fridays with even Julian dates and Mondays with odd ones. -Original Message- From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of Ian S. Worthington Sent: Wednesday, January 03, 2007 9:45 AM To: IBMVM@LISTSERV.UARK.EDU Subject: LOGON BY who? Anyone know any easy way to get the BY userid of a logon to a shared userid? Preferably from REXX, given a choice. Ian Worthington
Re: LOGON BY who?
CP Query BYUSER userid? Gregg "No plan survives execution"
LOGON BY who?
Anyone know any easy way to get the BY userid of a logon to a shared userid? Preferably from REXX, given a choice. Ian Worthington