I think you are perhaps asking the wrong question. I think the question should be
I have two (or more?) RACF-dataset-profile style names. How do I sort them into order such that I can do compares in order, and when I get a match, know that I have the "best" (from a RACF point of view) match? Perhaps that question will suggest the answer. For SYS1.PARM** the first wildcard is in the 10th position, and is a **. The SYS1.PARM*.OLD the first wildcard is in the 10th position and is a * -- so it is the more specific match and should precede SYS1.PARM**. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of ITschak Mugzach Sent: Tuesday, June 7, 2022 5:46 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
