Thanks to all who responded.

I wanted to open a directory, not a file.  OPENSEQ and OSOPEN, according to the
documentation and my usage experience in the past, allow opening an O/S file 
(record
key).  I simply wanted to open the directory.  UniVerse has the OPENPATH 
command and
there doesn't seem to be one for UniData.  D3 allows the OPEN statement to be 
used
for both conditions, opening an MV file or an O/S path.  This seems more 
concise, but
it doesn't make too much difference.

Anyway, I guess the UniData way is what I'll do.  :-)

Bill 

>-----Original Message-----
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of Dave Davis
>Sent: Thursday, August 23, 2007 1:24 PM
>To: [email protected]
>Subject: RE: [U2] UD - Open command
>
>Create a DIR pointer that looks like this:
>
>:AE VOC TEMPDIR
>
>001: DIR 
>002: D:\DataShare\Temp
>003: D_VOC
>
>That's the unidata way.
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Bill Haskett
>Sent: Thursday, August 23, 2007 3:23 PM
>To: [email protected]
>Subject: [U2] UD - Open command
>
>I was under the impression that UniData could handle something like:
> 
>OPEN 'E:\DataShare\Temp' TO TEMP.FV ON ERROR CRT "File abort." ELSE STOP 201,
'E:\DataShare\Temp'
>SELECT TEMP.FV
>IF SYSTEM(11) THEN
>   LOOP
>      READNEXT ID ELSE EXIT
>      ...do something
>   REPEAT
>END
> 
>This worked fine in D3 but it is failing (actually the program just
>stops) in UniData, even though the directory is local and valid.  Am I
>missing something or am I required to create a "DIR" pointer to the
>"D:\DataShare\Temp" local directory first?
> 
>Thanks,
> 
>Bill
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to