Here is part of some code I wrote to query DASD by VOLSER. Part of the code ask if you want to sort the output by VOLSER.
If SORTYN = 'Y' then do 'pipe cp query dasd', '| locate /'VOLSER'/', '| sort 21.6 ascending', '| pad 35', '| chop 35', '| stem DASDX1.' end else do 'pipe cp query dasd', '| locate /'VOLSER'/', '| pad 35', '| chop 35', '| stem DASDX1.' end Paul Feller AIT Mainframe Technical Support From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Dean, David (I/S) Sent: Wednesday, July 01, 2009 10:59 AM To: IBMVM@LISTSERV.UARK.EDU 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