IAUSENDS [ HP DeskManager Intrinsics ] MPE/iX 5.0 Documentation
HP DeskManager Intrinsics
IAUSENDS
This module builds a Transaction File to indicate the file to be sent,
logs on as an HP Desk user and calls HPDUserSend to send a file called
"IAUFILE" using HP Desk's transport system.
The program creates and uses a Session Profile file (PROFILE). PROFILE is
closed before being referenced when the call to HPDUserSignon is made.
HPDUserSignon is called to log on as the HP Desk user "Di User2". The
status return is tested. If an error status is returned an error routine
is performed. The error routine calls the Supporting Intrinsic,
HPDExplain, to pull the error message from the catalog. The message is
displayed and the program terminated.
The program then builds the TransactionFfile, TRANFILE. The first record
is the standard Body Type identifier, specifying that a new message is to
be sent as a standard deliverable item. The second record is a 11100
record (a tt_subject record) which indicates that the subject of the
message will be "IAUFILE". The third record is a 21000 record (a tt_from
record), indicating the message will come from "Di User2/HP1600/00". The
fourth record is a 21100 record (a tt_to record), specifying that the
message is to be sent to "Di USER/HP1600/00". The fifth record is a
30500 record (a tt_content_file record) specifying that the content of
the message which is to be sent is to be found in an MPE file called
"IAUFILE".
Once all five records have been written to TRANFILE, it is closed. The
User Intrinsic, HPDUserSend, is then called. TRANFILE is specified as
the Transaction File and the operation type is given as zero, or
"message".
Note that the message_ref parameter is not used in this example.
Message_ref would be returned by the Intrinsic to show the HP Desk
tracking number.
Successful completion of the Intrinsic call is tested. The termination
section calls the Supporting Intrinsic, HPDTerminate, to log off from HP
Desk.
MPE/iX 5.0 Documentation