Compilation information for classes
Hi All,
Is there any cache command which can give who all has compiled a classes from the day it has been created. Specifically I want the 2 information username and time of compilation of class.
I tried with $$DATE^%R("TEST.1.INT"), but it only gives the last compilation time.
Thanks in advance !!
Product version: Caché 2017.1
You can check the audit database for RoutineChange events.
You can have a look into this doc to get more clarification and understand what happens. Then you should be able to write your own script :-)
https://www.yumpu.com/en/document/read/36857498/using-the-cache-r-routin...
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
Another possibility might be to see if there's been backups of the routines being saved. It won't give you the "who" but it could at least give you the "when" a routine was modified & compiled.
You could use the 'Global Lister' and check the rBACKUP global. Here's an example (you may need to tinker with the the global lister input - taking a deeper dive into the ^rBACKUP global may help):
ZZZ>D ^%G Device: Right margin: 80 => Screen size for paging (0=nopaging)? 24 => For help on global specifications DO HELP^%G Global ^rBACKUP("TEST","INT",,0) or maybe Global ^rBACKUP("TEST.1","INT",,0)
To really get all the functionality you're looking for, you may need to set up a version control system like git or somesuch.
Hope this helps!