best fit for data set permissions that are the same length

Document ID : KB000111781
Last Modified Date : 21/08/2018
Show Technical Document Details
Question:
What determines which permit is used in the below scenario?

XA DATASET = TSS.B*.CCC.DDD 
ACCESS = ALL 
XA DATASET = TSS.BBB.C*.DDD 
ACCESS = ALL 

REQUESTED ACCESS = UPDATE 
ALLOWED ACCESS = ALL 
VOLUME ACCESS = NONE 
OVERRIDES = <NONE> 
RES ORIGIN = PERMITTED - PROFILE=PROF03I 
---------------- SECURITY PERMISSION ---------------
DSNAME = TSS.B*.CCC.DDD 
ACCESS = ALL 
Answer:
If two permits match in length and both have the necessary access level to meet the request then the permit that comes first in the listing will be used.