Subject: | |
From: | |
Reply To: | |
Date: | Thu, 7 Nov 1996 10:57:00 +0000 |
Content-Type: | multipart/mixed |
Parts/Attachments: |
|
|
From:
internet!VALSMTP.RIAG.COM!lberkowitz[SMTP:internet!VALSMTP.RIAG.COM!lberk
owitz]
Subject: Re: FINFO - How can I determine if a fil
<plug>
If you have MPEX (and if not, why not? it's not expensive; it's very,
very, versatile), you can use the OPENED file attribute on a LISTF and
then check the variable MPEXNUMSUCCEEDED.
Leonard Berkowitz
RIA Group (Warren, Gorham & Lamont)
(617) 292-8349 (E. S. T.)
Actually, since "opened" is a file attribute, you can use the VEFINFO()
function and do everything in one step rather than waste the
time/resources of a %listf AND THEN checking a variable anyway.
In other words, use this syntax:
%IF VEFINFO(<file-to-test>).OPENED
% <do stuff>
%ENDIF
rather than:
%LISTF <file-to-test>(OPENED),$NULL
%IF MPEXNUMSUCCEEDED = 1
% <do stuff>
%ENDIF
On the other hand, if you have to check MULTIPLE files (multiple here
meaning "more than three"), the %LISTF approach may be more appropriate.
______________________________ Reply Separator
Subject: FINFO - How can I determine if a file is in use?
Author: Rodney Behrendorff <[log in to unmask]> at Internet-Exchange
Date: 11/07/96 2:14 PM
Does anyone know of a simple way to detect if a particular file is in use
(MPE/iX 5.00 on HP3000)? I want a job (or command for that matter) to
bypass certain steps if a file is being accessed, but FINFO doesn't seem
to provide this information. "LISTF ,3" shows what I want to know under
"FLAGS:", and even "LISTF ,2" has an asterisk after the filename that
tells me enough information.
|
|
|