WHOHAS question

Document ID : KB000092757
Last Modified Date : 23/04/2018
Show Technical Document Details
Introduction:
Running a WHOHAS query. We want to find out everything that has FMSTST and +++TST (everything that possibly has access to FMSTST)
Question:
We are running a WHOHAS query. We want to find out everything that has FMSTST and +++TST (everything that possibly has access to FMSTST). We entered TSS WHOHAS DSN(FMSTST) and TSS WHOHAS DSN(FMSTST) DATA(MASK) and we get the same result - only those that have FMSTST, not +++TST as well. Is there a command that will give us the results we are looking for? 
Environment:
z/os
Answer:
There isn’t a single command for this because there are so many different ways access to a dataset could be granted. DATA(MASK) is used to interpret masking characters in the resource name in the TSS WHOHAS command. Normally, masking characters are interpreted only in the PERMITs. In this case you need to issue 2 commnands: TSS WHOHAS DSN(FMSTST) TSS WHOHAS DSN(+++TST)