Communicator 3000 MPE/iX Release 6.0 (Platform Software Release C.60.00) (30216-90269)
208 Chapter 10
Technical Articles
CI Enhancements
The final example polls the JMAT every 3 minutes looking for any job or
session matching a user name that includes the letters “MGR”, and
waits for all such job/sessions to terminate before the pause ends.
:PAUSE , @mgr@.@ , 180
INPUT Enhancement
The INPUT command was enhanced to accept the number of characters
to read from $STDIN. INPUT optionally writes prompt to $STDLIST then
reads numchars from $STDIN into varname, optionally waiting seconds for
the user to enter the data.
Syntax
INPUT [NAME=]varname
[[;PROMPT=]prompt]
[[;WAIT=]seconds ]
[[;READCNT=]numchars]
The READCNT parameter is new. If numchars characters are specified
then up to numchars bytes will be read from $STDIN. Of course the user
can press the
Return key at any time to complete the read. numchars is
most useful for reads of only a few characters and exempts the user
from being required to press the
Return key. The default numchars is the
maximum size of the CI's command buffer, currently 511 bytes. If
numchars is specified and less characters are supplied as input, the user
must still press the
Return key to send the data.
Example
INPUT myvar,'Do you want to continue (Y/N)?', 10, 1
prompts to $STDLIST, and does a 10 second timed read on $STDIN of
one character. When the user types the first character the read will
complete and the read byte will be stored in the variable named
MYVAR.
PRINT Enhancement
The PRINT command prints truncated records when an UNNUMbered
file contains the trailing eight characters as digits. The PRINT
command is not displaying the trailing eight characters as it assumes
those digits as line numbers.
NOTE This is the existing rule as of MPE/iX 5.5 for determining whether a file
is a numbered file:
If the trailing 8 characters of at least 10 records of a file or all records
(in the case of <10 records) are digits, then that file is considered as a
numbered file, provided the record line numbers (trailing 8 character
digits) are in ASCENDING order.
With this new option NONUM, the contents of the file would be displayed
as it is, without assuming the trailing 8 characters as line numbers.