TRANSFER Programming Manual
General Notes
Designing and Writing an Agent
10–14 069138, Update 1 to 040970 Tandem Computers Incorporated
Step 4: Attach the original package to the new package.
The program sends the ATTACH-COMPNT-A01 UOW to TISERV to attach the
original item as a component to the new item. The ID of the original package header
(ag-lnk-package-id) from the Linkage Section becomes the component ID, while the
parent ID is the item ID returned in Step 1.
Step 5: Submit the new package for delivery.
To submit the package, the program sends the SUBMIT-PKG UOW to TISERV after
having assigned the item ID from Step 1 to the item-id field.
Step 6: Acknowledge receipt of the original package.
The ACK-RECEIPT UOW accomplishes this task; the ID of the original package
header, ag-lnk-package-id, is again used in the UOW's item-id field.
Step 7: Remove the original package from the INBOX.
To do this, the program issues the UNSAVE-ITEM UOW, once again assigning
ag-lnk-package-id to the UOW's item-id field. INBOX is assigned to the folder-name
field.
General Notes Wherever possible, UOWs are grouped together in the same SEND operation for
greater efficiency. See "Grouping UOWs into IPCs," in Section 9, for details.
Installing and Configuring
the Sample Agent
To install and configure the sample agent, follow the directions for installing agents in
theTransfer Installation and Management Guide. Installation involves setting a parameter
in the DEFINETR file; configuration and attaching the agent to a depot are done
through the ADMIN application.