Communicator 3000 MPE/iX Release 6.0 (Platform Software Release C.60.00) (30216-90269)

Chapter 10 203
Technical Articles
CI Enhancements
OPEN is true if there are any processes that have formally
opened the file by calling FOPEN, HPFOPEN, RESET,
OPEN, or others. OPEN uses the same field that the "O:"
count is derived from.
LOCK is true if any process has locked (even if they are
waiting) the FLOCK, OPEN or GUFD semaphores, or has
called the HPFLOCK pseudo intrinsic (for POSIX record
level locking).
EXCL is true if the file was opened for exclusive access. EXCL
is true when LISTF,3 shows EXCL or LISTFILE,8
shows "Exclusive."
The CODE= criteria supports file code numbers and mnemonics as
shown below:
SELEQ=[ CODE = number | mnemonic | PRIV ]
The number can be positive or negative. PRIV will match all files with
negative file codes.
NOTE A new FINFO item 61 ("accessors") returns the number of accessors for
a file. This represents the total number of accessors, including all
processes that open the file in any manner. This is the first value seen
in the accessor summary line, which is described under the Format 8
description. It is also the same value shown in the FLAGS field of a
LISTF,3.
If a listed file is being accessed LISTF and LISTFILE now get the EOF
for the file from runtime data structures, rather than from a possibly
out-of-date file label as done in the past.
New Variables
Two new variables were added to MPE/iX CI:
HPLASTSPID
HPSPOOLID
HPLASTSPID is a read-only string variable. It contains the $STDLIST
spoolfile ID for the job defined by the HPLASTJOB variable, typically the
job most recently streamed in the session or job. Since HPLASTJOB
allows write access, it can be set to any job number, and then
HPLASTSPID will contain that job's $STDLIST spoolfile ID.
HPSPOOLID is a read-only string variable. It contains the $STDLIST
spool ID of the currently streamed job. This variable is useful only in
jobs—in a session it is an empty string.