Published on InterSystems Developer Community (https://community.intersystems.com)

Home > How to write into Cache classes, routines etc

Question
Rustam Ibragimov · Jul 15, 2016

How to write into Cache classes, routines etc

Hello, guys.

I have an external file that contains data in UDL format(as in Studio, not XML) and I need to somehow overwrite my source file with that file. 

I tried to use this snippet for .mac file

 set rtn = ##class(%RoutineMgr).%OpenId("les.mac")
 w rtn.Code.WriteLine("some text")

It says that status is 1, but I don't see any difference in my source file.

Is there any way to overwrite source files, not only .mac but .cls, .int, .dfi?

#Object Data Model #Caché

Source URL:https://community.intersystems.com/post/how-write-cache-classes-routines-etc