On Jul 29, 8:21am, Leonard Berkowitz wrote:
...
> IF FINFO ("file","EXISTS") THEN
> IF (FINFO ("file","FOPTIONS") ) BAND 2 = 2 THEN
> PURGE file,TEMP
> ENDIF
> ENDIF
> IF FINFO ("file","EXISTS") THEN
> IF (FINFO ("file","FOPTIONS") ) BAND 1 = 1 THEN
> PURGE file
> ENDIF
> ENDIF
Less elegant:
PURGE !file ;temp >$null
PURGE !file >$null
ERRCLEAR
If the file doesn't exist you get a warning (sent to $null) so there
is no need for a CONTINUE.
Jeff Vance, CSY
(note the semicolon before "temp")
--