Try this QDASD EXEC:

/* Query DASD by pattern */

arg dasd_info

'PIPE (ENDCHAR ?)',
   'cp q dasd all',
   ' | SPLIT STR /, /',
   ' | l: LOCATE W3 /CP/',
   ' | SPECS W2 1 W5 NW / / N',
   ' | f: FANINANY',
   ' | LOCATE /'dasd_info'/',
   ' | > qdasd output a',
   '?',
   'l:',
   ' | SPECS W2 1 W3 NW / / N',
   ' | f:'

'X qdasd output a'



Here are some sample calls, surrounded by quotes so extra blanks are 
obvious:

'QDASD RES '              <-- will show volids that end in RES
'QDASD  VM'               <-- will show volids that begin with VM
'QDASD PG'                <-- will show volids containing PG
'QDASD 54'                <-- will show volids or addresses containing 54

'QDASD FF'                <-- same as above for FF, but also shows OFFLIN
E

Brian Nielsen

On Wed, 1 Jul 2009 12:39:05 -0400, Dean, David (I/S) 
<[email protected]> wrote:

>Can I have it?
>
> 
>
>David Dean
>
>Information Systems
>
>*bcbstauthorized*
>
>________________________________
>
>From: The IBM z/VM Operating System [mailto:[email protected]] On
>Behalf Of Wakser, David
>Sent: Wednesday, July 01, 2009 12:14 PM
>To: [email protected]
>Subject: Re: CP Query wildcards
>
> 
>
>Because the command syntax requires a DASD pack name. I once wrote an
>EXEC to perform what you are attempting to do.
>
> 
>
>David Wakser
>
> 
>
>________________________________
>
>From: The IBM z/VM Operating System [mailto:[email protected]] On
>Behalf Of Dean, David (I/S)
>Sent: Wednesday, July 01, 2009 11: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*
>
> 
>
>-----------------------------------------------------

Reply via email to