In the old Prime Information days (where I believe CNAME came from) the
runtime engine would actually block an attempt to do a CNAME from
anywhere other than the colon (TCL) prompt.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 23 July 2004 13:45
To: [EMAIL PROTECTED]
Subject: [U2] Longstanding aversion to CNAME?

Wendy Smoak wrote on: Thu, 22 Jul 2004 17:26:59 -0700

> It seems that CNAME is not a popular UniBasic command.  Is there
> some history here I'm not aware of, maybe it was unreliable?
>
> From a UniBasic program, why would you open a file, read a record,
> write it back to the same file under a different key, then delete
> the original record, when you could just:
>
>   X.CMD = "CNAME filename ":X.ID:',':X.NEW.ID
>   EXECUTE X.CMD

Two reasons for me:

1) I learned MV under Pick, where CNAME wasn't available.  As previously
stated, you had to use the COPY command (with the "(D" option) and DATA
the
destination.  I've only been using UniData for about 3 years under SB+,
so
I'm still learning some of the "non-Pick" syntax options.

2) Crash safety net :->  If the system were to crash during the CNAME
operation, I wouldn't know for certain where the record was, and it
could
be completely lost.  If it crashed during the WRITE/DELETE sequence, I
would either have just the original, just the new, or possibly both.

--Tom Pellitieri
  Century Equipment
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


The information contained in this email is strictly confidential and for the use of 
the addressee only, unless otherwise indicated. If you are not the intended recipient, 
please do not read, copy, use or disclose to others this message or any attachment. 
Please also notify the sender by replying to this email or by telephone +44 (0)20 7896 
0011 and then delete the email and any copies of it. Opinions, conclusions (etc.) that 
do not relate to the official business of this company shall be understood as neither 
given nor endorsed by it.  IG Markets Limited and IG Index Plc are authorised and 
regulated by the Financial Services Authority and, in Australia, by the Australian 
Securities and Investments Commission.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to