Top Secret TSS0317E vs TSS0318E messages

Document ID : KB000123486
Last Modified Date : 02/01/2019
Show Technical Document Details
Question:
When a dataset is not already owned, when trying to permit it, for example: 

TSS PER(acid) DSN(xxxxx.) ACC(ALL) 

the following message is issued: 

TSS0317E DATASET/PREFIX NOT FOUND IN SECURITY FILE 
TSS0301I PERMIT FUNCTION FAILED, RETURN CODE = 8 


When a dataset is owned at a longer resource name, when trying to permit it, for example, DSN(ABC.XYZ) is already owned: 

TSS PER(acid) DATASET(ABC.) ACC(ALL) 

the following message is issued: 

TSS0318E RESOURCE NOT FOUND IN SECURITY FILE 
TSS0301I PERMIT FUNCTION FAILED, RETURN CODE = 8
Answer:
This is working as designed:

- TSS0317E is issued when the resource is not owned.

- TSS0318E is issued when the resource is owned but the permit name is shorter than the owned name (name specified on the ADD command).