Or simply PIPE CP QUERY NAMES|NFIND VSM - |CONS
feeds nicely into additional piping. On Thu, Sep 16, 2010 at 10:12 AM, Scott Rohling <[email protected]>wrote: > Hi Frank -- Yes, that pipe looks like it makes good use of rules 1 and 2 > and comes up with a good list. Nicely done - thanks! > > I still don't think the VSM info should be under Q NAMES - and those sneaky > rules make me suspect it was a shoehorn :-) But it's been interesting and > now at least I have a better way than just tossing 'VSM'. > > Thanks all! > > Scott Rohling > > > On Thu, Sep 16, 2010 at 7:56 AM, Frank M. Ramaekers <[email protected] > > wrote: > >> Are you looking to do something like this? QN EXEC: >> >> >> >> /* QUERY NAMES replacement */ >> >> Trace "O" >> >> Address "COMMAND" >> >> "PIPE (endchar ?)", >> >> "| CP QUERY NAMES", >> >> "| ZONE 9.1 NFIND -"||, >> >> "| SPLIT ,", >> >> "| STRIP", >> >> "| SORT", >> >> "| SPEC 1.15 1.16", >> >> "|o:FANOUT", >> >> "| SNAKE 5", >> >> "|i:FANIN", >> >> "| CONSOLE", >> >> "?o:", >> >> "| COUNT LINES", >> >> "| SPEC / Total number of users = / 1 1-* NW", >> >> "|j:FANIN", >> >> "| JOIN *", >> >> "|i:", >> >> "?o:", >> >> "| SPEC FS - F2 STRIP 1", >> >> "|p:FIND DSC"||, >> >> "| COUNT LINES", >> >> "| SPEC / disconnected = / 1 1-* NW", >> >> "| j:" >> >> Exit rc >> >> >> >> >> >> Frank M. Ramaekers Jr. >> >> >> >> >> ------------------------------ >> >> *From:* The IBM z/VM Operating System [mailto:[email protected]] *On >> Behalf Of *Scott Rohling >> *Sent:* Wednesday, September 15, 2010 7:30 PM >> *To:* [email protected] >> *Subject:* Re: VSM - TCPIP >> >> >> >> Ok - #1 helps a little (but I'm assuming a real user can end up by itself >> on a line too) - #2 a bit more (yes, sneaky) - #3 even more, but probably >> going a little far unless I'm going for 6 Sigma or something :-) >> Probably will stick with tossing VSM user cuz I'm a lazy old cuss. >> >> The good news for me is now I know why it's there and why I'm excluding it >> ... so.. thanks again... >> >> Scott Rohling >> >> On Wed, Sep 15, 2010 at 6:10 PM, Alan Altmark <[email protected]> >> wrote: >> >> On Wednesday, 09/15/2010 at 07:46 EDT, Scott Rohling >> >> <[email protected]> wrote: >> >> > Ok - so this is about linemode sessions. And yeah - I get the crickets >> - who >> > the heck uses linemode? I suppose it fits. I always have a grin on >> my face >> > when I explain virtual reader/punch/printer to non-z/VM folk. >> > >> > The consistency factor is me expecting the first word in front of the >> dash (-) >> > to be a guest name. So I still think Q VSM would be better than >> stuffing it >> > into Q NAMES where I'm looking for guest names and their status. But >> no one >> > asked me.. hmmph >> > >> > Sounds like I get my list of running guests by ignoring VSM.. Keeping >> my >> > fingers crossed no one names a guest VSM until I retire :-) >> >> Perhaps it would help to know that all VSMs >> 1. Appear on a separate line of output on QUERY NAMES >> 2. Have the '-' in column 9. User IDs have it in column 10. (Sneaky, >> huh?) >> 3. Can be seen via "CP QUERY IUCV *CCS" >> >> Alan Altmark >> z/VM Development (T minus 3h 50m) >> IBM Endicott >> >> >> _____________________________________________________ This message >> contains information which is privileged and confidential and is solely for >> the use of the intended recipient. If you are not the intended recipient, be >> aware that any review, disclosure, copying, distribution, or use of the >> contents of this message is strictly prohibited. If you have received this >> in error, please destroy it immediately and notify us at >> [email protected]. >> > >
