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/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to