The TSS manual (v15) says it starts by looking for, simply, the longest 
resource name:

/* Quote begins */
To determine the longest resource name, each character in the resource name 
counts as one character whether it is a normal character or a masking 
character. If the floating mask “-“ is used in a PERMIT, only count the 
characters prior to the mask. The following table contains examples of how to 
count characters:

  For Resource    Number of Characters Counted
  SMITH.TEST.JCL  14, all characters are counted
  JONES.*.JCL     11, all characters are counted
  BROWN.-.JCL     6, only 'BROWN.' is counted
/* Quote ends */

In TSS, masking characters are '+', '*' and '-'.  The plus sign is one 
character.  I've heard conflicting things about the other two; at one time I 
understood that the '*' could stand for any zero to eight characters INCLUDING 
A PERIOD, so that GEN*FIT would match GENFIT, GEN.FIT, GEN.XYZ.FIT or 
GENXX.XYZ.XFIT.  But it also says here it's supposed to be about a single 
index.  One of these days I've got to test this and see what the real story is. 
 The hyphen, it says here, is a "floating" mask; they appear to mean it can 
represent any number of characters.

If you have multiple permissions which by the above criteria are the same 
length, then it looks at other features of the permissions to determine a 
match.  For instance, if one of them says ACCESS(NONE), that one controls 
regardless of other matters.  Failing that, it looks at (for example) FACILITY, 
TIME, TERMINAL and so on.

---
Bob Bridges, [email protected], cell 336 382-7313

/* By Faith we believe always what we have already seen imperfectly and by 
flashes, and hope hereafter to see always and perfectly.  -C S Lewis in "Is 
Theism Important?", from "God in the Dock" */

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Itschak Mugzach
Sent: Monday, June 13, 2022 02:14

Well, let's make it the TSS rule.

--- On Thu, Jun 9, 2022 at 3:39 PM Bob Bridges <[email protected]> wrote:
> Yes, but matching BY WHAT RULE(S)?  Which mask is the best match 
> depends on what set of rules you're using - and unless I've 
> misunderstood you, you seem to be saying that you have no particular set of 
> rules in mind.
> Therefore you cannot determine which mask is the better fit.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to