On Jul 9, 2006, at 9:26 PM, Nancy Anthracite wrote:

I tried playing with it:


GTM>S MYIO="home/nancy/testIO.txt"


GTM>O MYIO W $T

%SYSTEM-E-ENO13, Permission denied


GTM>S MYIO="/tmp/TestIO.txt"


GTM>O MYIO W $T

1

GTM>C MYIO


GTM>H


[EMAIL PROTECTED]:~$ ls /tmp/TestIO.txt

/tmp/TestIO.txt

[EMAIL PROTECTED]:~$ cat /tmp/TestIO.txt


So, what is $T ?


It's short for $TEST. This variable is very much like the test register in assembly language programming. Try the following (note the two spaces before the WRITE):

I 1>0  W $T
I 0>1  W $T

At any rate, when you exit an OPEN command, $TEST tells you whether or not the OPEN succeeded. The Kernel Device Handler (^%ZIS and relatives) sets a variable called POP to indicate success or failure, but at the MUMPS level, you need to check $TEST.

Gregory Woodhouse

"Judge a man by his questions not 
his answers."   --Voltaire



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to