How to collect LREF data for executed loadlibs only

Document ID : KB000096808
Last Modified Date : 17/05/2018
Show Technical Document Details
Question:
Wanting to collect Last Referenced data for a load library object module that has been "executed" only. Not read or browsed by other utilities such as ISPF. Yet, if a CLIST executes the load module we want to collect this information. If a batch job executes the load library we want to collect this data as well. 
Answer:
Recommend the following $ACCESS statement
 
$ACCESS LIB=your.loadlib. name
                TYPE=EXECUTE
 
The BLDL or DESERV functions are the system services that search for members
  
From the doc:
 
EXECUTE
Program, CLIST, or procedure executions only.
 
Additional Information:
If you go to supportonline and search DOCOPS for your CA PDSMAN documentation you can use this link to acquire the $ACCESS sample and explanation of its use.
 
https://docops.ca.com/ca-pdsman/7-7/en/administrating/initialization-control-statements/access-control-statement
 
This is the CA PDSMAN PDS Library Management Administrator Guide page 97