[U2] UD - Open command

2007-08-23 Thread Bill Haskett
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
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UD - Open command

2007-08-23 Thread Karen Bessel
I've never used drive letters myself, I don't think that will work in
U2. 

Is this Windows or Unix?

If it's Unix - Have you tried using the Unix pathname to see if the file
will successfully open? 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Haskett
Sent: Thursday, August 23, 2007 3:23 PM
To: u2-users@listserver.u2ug.org
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
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UD - Open command

2007-08-23 Thread hemiiim2k
You can look at OSOPEN in UniData.  I do not think any flavor of UniData will 
support your 201 error code condition, but I may be wrong.

Also, if you want SYSTEM(11) to work, then I do think you will be better off 
putting a directory entry into the VOC file and opening with a standard open 
clause.


 -- Original message --
From: Bill Haskett [EMAIL PROTECTED]
 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
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UD - Open command

2007-08-23 Thread Tom Dodds
Try using the OPENSEQ or an OSOPEN depending on your needs.  I can't
remember the difference, but HELP should show you the way.

Tom Dodds 
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Haskett
Sent: Thursday, August 23, 2007 12:23 PM
To: u2-users@listserver.u2ug.org
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
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UD - Open command

2007-08-23 Thread Norman Morgan
 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?

When we converted from D3 to UniData, I spent more time on this kind of
thing that anything else.  I believe you will have to use the OPENSEQ
and READSEQ verbs instead.  Something like:

OPENSEQ 'E:\DataShare\Temp' TO TEMP.FV ELSE STOP 201,
'E:\DataShare\Temp'
END.OF.FILE = 0
LOOP
   READSEQ TEMP.REC FROM TEMP.FV ELSE END.OF.FILE = 1
UNTIL END.OF.FILE DO
   ...do something
REPEAT
END

===
Norman Morgan  [EMAIL PROTECTED]  http://www.brake.com
===
The world's most affectionate creature is a muddy dog.
===
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UD - Open command

2007-08-23 Thread Martin Phillips

Hi Bill,


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'


UV can do this using OPENPATH. I don't think this is supported in Unidata 
(I'm not in a position to check right now butit's not in the manuals). Your 
suggestion of using a DIR pointer to the directory is the usual way to do 
this.



Martin Phillips, Ladybridge Systems Ltd 
---

u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UD - Open command

2007-08-23 Thread Dave Davis
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: u2-users@listserver.u2ug.org
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
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UD - Open command

2007-08-23 Thread Kevin King
You'll need a DIR pointer to access that file, then open the file via the
DIR pointer name.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UD - Open command

2007-08-23 Thread bradley . schrag
I can't speak authoritatively for UD on Windows, but if this is a
sequential file, I think you'll have to use OPENSEQ instead of OPEN.

 OPEN 'E:\DataShare\Temp' TO TEMP.FV ON ERROR CRT File abort. ELSE STOP
201,
 'E:\DataShare\Temp'

Brad

The answer to life, the universe and everything.
sdg



--
Electronic Privacy Notice. This e-mail, and any attachments, contains 
information that is, or may be, covered by electronic communications privacy 
laws, and is also confidential and proprietary in nature. If you are not the 
intended recipient, please be advised that you are legally prohibited from 
retaining, using, copying, distributing, or otherwise disclosing this 
information in any manner. Instead, please reply to the sender that you have 
received this communication in error, and then immediately delete it. Thank you 
in advance for your cooperation.
==
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UD - Open command

2007-08-23 Thread Bill Haskett
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: u2-users@listserver.u2ug.org
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: u2-users@listserver.u2ug.org
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
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/