Bob:
 
    Been there, done that, got the tee-shirt.
 
    You are not taking into consideration that there are multiple types
of DASD displays (with a different format), like: 1) "free" DASD, 2)
DASD attached to a guest, and 3) DASD attached to a system. Your PIPE
will find ANY occurrence of the string in the results of the Q DASD"
command. For example, if I merely wanted volumes starting with "SY",
your locate would hit on the word SYSTEM in the result consisting of
"DASD 6743 CP SYSTEM UFC000   1087".  That is NOT what is desired.
 
    The only way I was able to do this was to issue multiple types of Q
DASD commands, format the output into files, and then use the locate
parameter to pull off the ones I was looking for.  I believe I needed 3
or 4 pipes to accomplish this, but this was probably 15 years ago, so
perhaps there are now stages that would make this easier. But your
simple pipe will not produce the correct results.
 
David Wakser

________________________________

From: The IBM z/VM Operating System [mailto:[email protected]] On
Behalf Of Bob Bates
Sent: Wednesday, July 01, 2009 12:10 PM
To: [email protected]
Subject: Re: CP Query wildcards


Because the wildcard isn't accepted there. 
 
Maybe a quick PIPE: 
 
PIPE CP Q DASD ALL | split , | locate /L53/ | console
 
Unless you are only concerned with DASD attached to the system, then you
don't need the split or the ALL on the Q DASD.
 

Bob Bates 
Enterprise Hosting Services

w. (469)892-6660 
c. (214) 907-5071 

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based on
this message or any information herein.  If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message.  Thank you for your cooperation."


 

________________________________

From: The IBM z/VM Operating System [mailto:[email protected]] On
Behalf Of Dean, David (I/S)
Sent: Wednesday, July 01, 2009 10:59 AM
To: [email protected]
Subject: CP Query wildcards



Why won't my wildcard work?

 

 

q dasd l53701

DASD C018 CP SYSTEM L53701   1

DASD C0CE CP SYSTEM L53701   1

DASD C0CF CP SYSTEM L53701   1

 

CP

q dasd l53*

DASD L53* was not found.

 

 

Thanks

 

David Dean

Information Systems

*bcbstauthorized*

 

-----------------------------------------------------
Please see the following link for the BlueCross BlueShield of Tennessee
E-mail disclaimer:  http://www.bcbst.com/email_disclaimer.shtm


Confidentiality Note: This e-mail, including any attachment to it, may contain 
material that is confidential, proprietary, privileged and/or "Protected Health 
Information," within the meaning of the regulations under the Health Insurance 
Portability & Accountability Act as amended.  If it is not clear that you are 
the intended recipient, you are hereby notified that you have received this 
transmittal in error, and any review, dissemination, distribution or copying of 
this e-mail, including any attachment to it, is strictly prohibited. If you 
have received this e-mail in error, please immediately return it to the sender 
and delete it from your system. Thank you.

Reply via email to