HP3000-L Archives

July 1998, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Leonard Berkowitz <[log in to unmask]>
Reply To:
Leonard Berkowitz <[log in to unmask]>
Date:
Wed, 29 Jul 1998 14:15:49 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (61 lines)
Jeff,

What is the significance of the semi-colon. Consider:

: PURGE ABC;TEMP
                                 ^
File "ABC.HGLB.Y2KOLD" not found.  No purge done. (CIWARN 383)
: PURGE ABC,TEMP
                                 ^
File "ABC.HGLB.Y2KOLD" not found.  No purge done. (CIWARN 383)

There was a time when MPE[/iX] would issue a scolding message "expecting
comma" when a semi-colon was used, but executed the purge command. Now
either punctuation mark is accepted.

Leonard







Jeff Vance <[log in to unmask]> on 07/29/98 01:55:37 PM

Please respond to Jeff Vance <[log in to unmask]>

To:   [log in to unmask]
cc:    (bcc: Leonard Berkowitz/THP)
Subject:  Re: temp or perm file?




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")

--

ATOM RSS1 RSS2