OSI/FTAM Programming Guide
Using FTM Procedure Calls
HP NonStop OSI/FTAM Programming Guide—528612-001
4-17
Sample Procedure-Call Sequence
Sample Procedure-Call Sequence
Table 4-8 presents a sample procedure-call sequence using two grouped services: 
F-SELECT and F-OPEN. A similar sequence is used for all grouped services.
Table 4-8. Calls for Selecting and Opening FTAM Files Using Two Grouped 
Services (page 1 of 2)
Step Action to Take Procedure(s) to Call
1 Begin grouped request. FTM_BEGIN_GROUP_REQ_
a. If error returned by 
FTM_BEGIN_GROUP_REQ_, check status.
APS_STATUS_
b. If nowait mode, await completion.  MFM_AWAITIOX_
c. If error returned by MFM_AWAITIOX_, check 
status.
APS_STATUS_
2 Perform select request service.  FTM_SELECT_REQ_
a. If error returned by FTM_SELECT_REQ_, 
check status.
APS_STATUS_
b. If nowait mode, await completion.  MFM_AWAITIOX_
c. If error returned by MFM_AWAITIOX_, check 
status.
APS_STATUS_
3 Perform open request service.  FTM_OPEN_REQ_
a. If error returned by FTM_OPEN_REQ_, 
check status.
APS_STATUS_
b. If nowait mode, await completion.  MFM_AWAITIOX_
c. If error returned by MFM_AWAITIOX_, check 
status.
APS_STATUS_
4 End grouped request. FTM_END_GROUP_REQ_
a. If error returned by 
FTM_END_GROUP_REQ_, check status.
APS_STATUS_
b. If nowait mode, await completion. MFM_AWAITIOX_
c. If error returned by MFM_AWAITIOX_, check 
status.
APS_STATUS_
5 Get the next event.  APS_EVENT_RECEIVE_
a. If nowait mode, await completion. MFM_AWAITIOX_
6 Check status: Is the event a begin-group 
confirm? Or, if APS_EVENT_RECEIVE_ 
returns a status other than ZAPS-VAL-
STATUS-EVENT, is there an error?
APS_STATUS_
7 Get the next event. APS_EVENT_RECEIVE_
a. If nowait mode, await completion. MFM_AWAITIOX_










