]
--
Larry Hiscock [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
09/14/2007 07:57 PM
Please respond to
u2-users@listserver.u2ug.org
To
u2-users@listserver.u2ug.org
cc
Subject
RE: [U2] [UD] create file
You don't need to do the touch command. If the OPENSEQ takes the ELSE
snip
(One major drawback is that the touch command will not work on Windows.)
/snip
You can have touch available if you install Services for Unix.
C:touch myself
C:ls -latr myself
C:rm myself
And of course:
C:rm -r * :)
All work from within a 'Dos' window, not just a shell session.
A lot more lines of code, but this should work. (Please double-check for
typos.)
FILE.IS.OPEN = 0
LOOP
OPENSEQ '/path/file' TO FV
ON ERROR
PRINT;PRINT 'Could not open the /path/file file, status
':STATUS():'.'
STOP
END LOCKED
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Charlie Rubeor
Sent: Friday, September 14, 2007 7:41 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [UD] create file
A lot more lines of code, but this should work. (Please double-check for
typos
Hello group, I am a UV guy and I need some UD assistance.
In UV I can
OPENSEQ /path/file TO FV ELSE
CREATE FV ELSE STOPM nope
END
Which will create the file if it doesn't exit, after which I can READEQ or
READBLK to my heart's content.
But UD dies at the CREATE statment.
Also, instead of
PROTECTED] On Behalf Of Scott Ballinger
Sent: Thursday, September 13, 2007 6:44 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] [UD] create file
Hello group, I am a UV guy and I need some UD assistance.
In UV I can
OPENSEQ /path/file TO FV ELSE
CREATE FV ELSE STOPM nope
END
Which will create
Hi,
Is there a UniBasic command which will let me do the following:
-- Open a seq file. If it does not exist then create one and open
it. ---
The seq file that I want to create/open is in the _HOLD_ directory, so
its kinda record in the _HOLD_ file.
I thot of working with the STATUS
Chauhan, Savita wrote:
Is there a UniBasic command which will let me do the following:
-- Open a seq file. If it does not exist then create one and open
it. ---
OPENSEQ doesn't require that the record exist to successfully open it.
Only the parent directory has to exist. The record will
Have you tried using the ELSE clause with the OPENSEQ? That's how I
usually do it.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chauhan, Savita
Sent: Monday, September 20, 2004 1:44 PM
To: [EMAIL PROTECTED]
Subject: [U2][UD] Create file/record
: [EMAIL PROTECTED]
Sent: Sep 20, 2004 3:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [U2][UD] Create file/record if it does not exist
Have you tried using the ELSE clause with the OPENSEQ? That's how I
usually do it.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
: Monday, September 20, 2004 2:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [U2][UD] Create file/record if it does not exist
Have you tried using the ELSE clause with the OPENSEQ? That's how I
usually do it.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
PROTECTED]
Subject: RE: [U2][UD] Create file/record if it does not exist
This is how I open my file.
X.EXT.FILE = '_HOLD_/XHR.PLINK.BENDED.EXTRACT'
OPENSEQ X.EXT.FILE TO f.xhr.plink.bended.extract ELSE
ERR.MSG = Error Opening XHR.PLINK.BENDED.EXTRACT. Error code
:STATUS()
CRT
PROTECTED]
Subject: RE: [U2][UD] Create file/record if it does not exist
This is how I open my file.
X.EXT.FILE = '_HOLD_/XHR.PLINK.BENDED.EXTRACT'
OPENSEQ X.EXT.FILE TO f.xhr.plink.bended.extract ELSE
ERR.MSG = Error Opening XHR.PLINK.BENDED.EXTRACT. Error code
:STATUS()
CRT
: RE: [U2][UD] Create file/record if it does not exist
This is how I open my file.
X.EXT.FILE = '_HOLD_/XHR.PLINK.BENDED.EXTRACT'
OPENSEQ X.EXT.FILE TO f.xhr.plink.bended.extract ELSE
ERR.MSG = Error Opening XHR.PLINK.BENDED.EXTRACT. Error code
:STATUS()
CRT ERR.MSG
RETURN
14 matches
Mail list logo