RE: [U2] [UD] create file

2007-09-17 Thread Charlie Rubeor
] -- 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

RE: [U2] [UD] create file [not-secure]

2007-09-17 Thread Hennessey, Mark F.
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.

Re: [U2] [UD] create file

2007-09-14 Thread Charlie Rubeor
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

RE: [U2] [UD] create file

2007-09-14 Thread Larry Hiscock
-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

[U2] [UD] create file

2007-09-13 Thread Scott Ballinger
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

RE: [U2] [UD] create file

2007-09-13 Thread Larry Hiscock
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

[U2][UD] Create file/record if it does not exist

2004-09-20 Thread Chauhan, Savita
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

Re: [U2][UD] Create file/record if it does not exist

2004-09-20 Thread John Hester
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

RE: [U2][UD] Create file/record if it does not exist

2004-09-20 Thread Karen.BESSEL
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

RE: [U2][UD] Create file/record if it does not exist

2004-09-20 Thread Michael S. O'Rear
: [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

RE: [U2][UD] Create file/record if it does not exist

2004-09-20 Thread Chauhan, Savita
: 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

RE: [U2][UD] Create file/record if it does not exist

2004-09-20 Thread Shawn Waldie
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

2004-09-20 Thread Allen E. Elwood \(CA\)
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

2004-09-20 Thread kafsat taiyus
: 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