For a complicated match I would use PCRE. For a simple match of a dsn against a
list, I'd use something like
found = 0
do i=1 to words(names) until found
if dsn = word(names,i) then found=1
end
if found then say dsn 'matched'
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of
ITschak Mugzach [[email protected]]
Sent: Tuesday, June 7, 2022 8:45 AM
To: [email protected]
Subject: Rexx generic compare
I think this issue was discussed here in the past, but I can't find it.
Anyway, I am trying to figure out what is a better fit for a generic mask.
Assume I have SYS1.PARMLIB.OLD and I am looking into two strings:
SYS1.PARM** and SYS1.PARM*.OLD
Is there a way to identify which is better covers SYS1.PARMLIB.OLD (the
second one, of course)( using Rexx?
ITschak
ITschak Mugzach
*|** IronSphere Platform* *|* *Information Security Continuous Monitoring
for z/OS, x/Linux & IBM I **| z/VM coming soon *
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN