I'm back.  I lost my machine yesterday afternoon.

-----Original Message-----
From: Larry Hiscock [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 2:21 PM
To: 'U2 Users Discussion List'
Subject: RE: [UD] OPENSEQ, WEOFSEQ, CLOSESEQ


Comments inline:

>What version of UD are you running?  On what OS?  We're on an older
version of UD (4.0.23) on SCO OpenServer 5.0.5, and we >use WRITESEQ a
LOT, always with the same basic flow that I posted in my previous
message.  OPENSEQ, loop through WRITESEQ, >WEOFSEQ, CLOSESEQ

HP-UX B.11.11
UniData 6.0.9


>If the file doesn't exist, it WILL take the ELSE clause, but with
>STATUS() = 0.  If it can't create and/or open an existing file, it will
take the ELSE clause, but with STATUS() <> 0.  Use >the following in
your OPENSEQ statement:
>
>OPENSEQ 'dirfile',SEQ.NAME TO FIL.SEQ ELSE
>  IF STATUS() NE 0 THEN
>    PRINT 'Error message...'
>    recover from error...
>  END
>END
>
>If the file doesn't already exist, it will take the else branch, but
>STATUS() will be zero, so it won't print the error message.
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to