HP 3000 Manuals

IAUNAMES [ HP DeskManager Intrinsics ] MPE/iX 5.0 Documentation


HP DeskManager Intrinsics

IAUNAMES 

This module constructs a Transaction File containing the names of HP Desk
users and submits the file to the HPDNameProbe Supporting Intrinsic for
verification.

The program firstly writes a Body type record to the Transaction File
(TRANFILE). This indicates that a Distribution List follows.  The program
then reads through the input file INNAMES. It writes a record to
TRANFILE, for each record read from INNAMES. NOTE in this example, each
record is a 21100 (TT_TO). TRANFILE is closed before being submitted to
the Intrinsics.

The program issues a call to the Intrinsic HPDNameProbe, specifying
verification as the type of operation the Intrinsic is to perform.  The
STATUS return is tested.  If any error is reported a routine is performed
which calls the HPDExplain Supporting Intrinsic.  HPDExplain extracts the
appropriate message from the catalog.  The error routine displays the
message and halts the program.

If the call to HPDNameProbe terminated successfully, the Transaction File
is opened by the program.  As each record in TRANFILE is read, the
program checks status result (the first element in the HPD-Status array).
If this indicates the name supplied to HPDNameProbe was found on the
database, a record is written to an output file of valid names/mailnodes.
Where the status result indicates the supplied name was invalid, it is
displayed with a "Name not found" message.



MPE/iX 5.0 Documentation