The simplest thing to do is to replace ZWR with ZWRITE
the full spelling of the command works on both Cache and GT.M
the other thing to be aware of is that ZWRITE on Cache only works
with local variables, whereas ZWRITE on GT.M also works with global
variables.
Perhaps you could show us the code that is using ZWRITE ?
I tried to write a routine to use instead of ZWR that used $query, but I guess I don't know how $query works...GTM>s g=$na(^TMP("MXMLDOM",C0XJOB,1,2))GTM>W g^TMP("MXMLDOM",14496,1,2)GTM>w $q(g)
Thanks John!.That makes things much easier.. I'm going to change all the ZWRs to ZWRITEs ..Thanks David, Bhaskar, and Larry. I know a little more about $query now.. Maybe someday I'll find a chance to use it...gpl
Here's what I came up with to replace ZWR in the SHOW^C0XF2N case of
showing part of the MXML DOM:
<snip>
... and I got to use $Query
... i'm not sure what to do with the error reporting uses of zwr...
probably just call ^%XTR...
gpl
On Feb 21, 11:32 pm, George Lilly <gli...@glilly.net> wrote:
> I guess I'm just going to have to avoid ZWRITE altogether.
>
> ^XMPG works strangly:
>
> GTM>D ^XMPG
>
> DEVICE: HOME// TELNET
>
> Global: TMP("MXMLDOM",14496,1,2
> ^TMP("MXMLDOM",14496,1,2,"A","rdf:about")=
> ^TMP("MXMLDOM",14496,1,2,"P")=1
> Global:
> GTM>ZWR ^TMP("MXMLDOM",14496,1,2,*)
> ^TMP("MXMLDOM",14496,1,2)="owl:Ontology"
> ^TMP("MXMLDOM",14496,1,2,"A","rdf:about")=""
> ^TMP("MXMLDOM",14496,1,2,"P")=1
>
> thanks John.
>
> gpl
>
http://sourceforge.net/tracker/?func=detail&aid=534145&group_id=11026&atid=311026 has code to export from the other MUMPS in the safe ZWR format.-- Bhaskar
No, Gus, I did not. Check the link out to see which MUMPS Maury wrote that code for!