Not sure if this was already discussed here. $o is giving me different results depending if I use local variable (array) or a global when I use strings bigger than 18 characters. For example:
F S B=$O(^A(B)) Q:B="" W !,B
And this is ok. Now using array instead of global:
F S B=$O(A(B)) Q:B="" W !,B
It seems to me that $O is converting my string to a numeric and truncating it on position 18 (because of the 18 digits accuracy for numeric).
Is there any workaround for this issue? I've tested this in both 5.4 and 5.3.
Log in to post a comment.