The RESTYPE option
Use the QUERY SECURITY command with the RESTYPE option to query access levels to CICS® resources (including DB2® resource definitions) contained in the classes activated at initialization by RACLIST.
The response to the QUERY SECURITY command indicates the result of a resource check on this resource. If the resource is not defined to RACF®, CICS does not grant access and the response is NOTREADABLE. Ensure the length of the resource name passed to RACF with a RESTYPE request is the actual maximum length for that resource type.