Jim,
There is no way to do what you want using a single ISPF command, but the
following simple edit macro will do it:
/* REXX Edit Macro */
address isredit
"MACRO"
"FIND ABC FIRST"
"FIND XYZ .ZCSR .ZCSR NEXT"
if rc = 0 then say "Found"
else say "Not found"
exit 0
This will find any line that contains ABC followed by XYZ, including when
there are no intervening characters (e.g. ABCXYZ). Of course you can change
the strings to be entered as input arguments and use column ranges to limit
the search and put the FIND in a loop (etc), but hopefully this will get you
started.
Dave Salt
SimpList(tm) - The easiest, most powerful way to surf a mainframe!
http://www.mackinney.com/products/SIM/simplist.htm
From: Jim McAlpine <[EMAIL PROTECTED]>
Reply-To: IBM Mainframe Discussion List <[email protected]>
To: [email protected]
Subject: ISPF arbchar
Date: Wed, 19 Jul 2006 11:31:55 +0100
If I do "f p'abc===xyz'" I can find any string that begins with abc and
ends with xyz and has any 3 characters in the middle. Is the any way to
find any n-character string starting with abc and ending with xyz or do I
always have to explicitly specify the number of unknown characters.
Jim McAlpine
----------------------------------------------------------------------
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
----------------------------------------------------------------------
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