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

Home > Are there issues with $$$OK on Cache 2010?

Question
John Kumpf · Dec 6, 2018

Are there issues with $$$OK on Cache 2010?

Hi guys,

I'm running a method on an instance of Cache 2010, which, when compiled, has $$$OK in it's .int code.  This line throws an error, telling me that "the OK macro isn't recognized". 

Some things I've tried;

- I looked it %occStatus, and the macro definition of OK is there.

- I changed $$$OK to 1 by hand in the .int code.  It compiled successfully, but each time I recompile the original class, it's going to put that $$$OK back

- I tried Include %occStatus at the top of the class.  The .int code was unchanged when I did this (is my syntax on that wrong?)

I've had this problem in two different classes now.  In one, $$$OK was used in the .cls code.  That one, I just added a quick cache version check to use 1's instead on Cache 2010.  Now, I realize I'm kind of playing whack-a-mole with these, and maybe I should try to find the root of the problem; classes compiling into .int's with $$$OK's in them would be hard to stop.

Thanks

#Caché

Source URL:https://community.intersystems.com/post/are-there-issues-ok-cache-2010