On Tue, 18 Nov 2008 15:42:07 +0000, Jim McAlpine <[EMAIL PROTECTED]> wrote:

>Is there any way to achieve the above ie to search for 'abc*xyx' where * can
>be any length in all members of a pds.
>
>Jim McAlpine
>

I know of a way, but only __IF__ you have installed the GNU "grep" program
from the IBM site:

http://www-03.ibm.com/servers/eserver/zseries/zos/unix/bpxa1ty1.html

I use DTLSPAWN from Dovetailed Technologies, but you could use BPXBATCH to
run it as well. I installed GNU grep in /usr/local/bin. The JCL I use is:

//EX1 EXEC DTLSPAWN
//STDIN DD *
set -x
/usr/local/bin/egrep -r "abc.*xyz" \
"//'DCHPN.ENDEVOR.PROD.SRCLIB'"
//

The ".*" says to match any number (0+) of arbitrary characters.

--
John

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to