Subject: | |
From: | |
Reply To: | |
Date: | Wed, 29 Jul 1998 14:15:49 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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")
--
|
|
|