#31 ZWRite can't handle environment spec

open
nobody
None
5
2012-12-29
2002-06-13
Jon Willeke
No

The ZWRite command can't handle a global name with an environment specification:

GTM>zwr ^|"mumps.gld"|x
%GTM-E-VAREXPECTED, Variable expected in this context

All the other commands I've tried work: Set, Kill, Lock, ZKill, ZWIthdraw.

Discussion

  • Logged In: YES
    user_id=97919

    Jon,

    Yes, currently ZWRITE does not work with extended
    references. We will be fixing this in a future release. Until
    then you can use the following workaround (which you
    very likely are aware)

    set gbldirsave=$zgbldir
    set $zgbldir="mumps.gld"
    zwr ^x
    set $zgbldir=gbldirsave

    Thanks,
    Narayanan.