Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Undocumented close parameter

54 views
Skip to first unread message

Jens Wulf

unread,
Jul 16, 2024, 5:39:10 AM7/16/24
to Everything MUMPS
I've been testing my syntax-checker and it marked this statement:

c tempfile:(replace=file)


I tried the following (yottaDB):
        Set tempfile="/tmp/1.txt",file="/tmp/2.txt"
        Open tempfile Use tempfile Write "1" Close tempfile
        Open file Use file Write "2" Close file
        Open tempfile
        Close tempfile:(replace=file)
After this only 2.txt exists and contains a "1".
Is this planned to be documented?

Kevin Toppenberg

unread,
Jul 16, 2024, 9:07:14 AM7/16/24
to Everything MUMPS
I can't repeat this.  Here is what I get.




yottadb>Set tempfile="/tmp/1.txt",file="/tmp/2.txt"

yottadb>Open tempfile Use tempfile Write "1" Close tempfile

yottadb>

NOTE: At this point I verify that 1.txt in /tmp/1.txt contains "1"

yottadb>OOpen file Use file Write "2" Close file

NOTE: at this point 1.txt contains '1' and 2.txt contains '2'

yottadb>Open tempfile

NOTE: no change in text files, both still OK

yottadb>Close tempfile:(replace=file)
%YDB-E-DEVPARUNK, Deviceparameter unknown

yottadb>

NOTE: no change in text files, both still OK


yottadb>w $ZVER
GT.M V6.3-008 Linux x86_64
yottadb>

K.S. Bhaskar

unread,
Jul 16, 2024, 10:30:36 AM7/16/24
to Everything MUMPS
Jens –

I have created https://gitlab.com/YottaDB/DB/YDBDoc/-/issues/405. Thank you for bringing this to our attention.

Regards
– Bhaskar

Maury Pepper

unread,
Jul 16, 2024, 10:31:24 AM7/16/24
to Everything MUMPS
Time to compare version numbers. My guess: KT < JW.

Jens Wulf

unread,
Jul 16, 2024, 11:01:06 AM7/16/24
to Everything MUMPS
Yes - seems to be a new feature.

YDB>W $ZVER
GT.M V7.0-001 Linux aarch64

K.S. Bhaskar

unread,
Jul 16, 2024, 1:33:57 PM7/16/24
to Everything MUMPS
Jens, the documentation has been updated. Thanks again for catching it.

Regards
– Bhaskar

K.S. Bhaskar

unread,
Jul 16, 2024, 1:35:22 PM7/16/24
to Everything MUMPS
Also, yes, this is new in r2.00, inherited from V7.0-001 (https://gitlab.com/YottaDB/DB/YDB/-/releases#GTM-9452).

Regards
– Bhaskar

Reply all
Reply to author
Forward
0 new messages