OpenTP1 Version 7 Programming Guide
Tables 1-1 to 1-5 list the OpenTP1 library functions.
Table 1-1 OpenTP1 library functions (basic OpenTP1 facilities)
| Facility | Library function name | ||
|---|---|---|---|
| C language library | COBOL-UAP creation program | ||
| Remote procedure call | Start a UAP | dc_rpc_open | CBLDCRPC('OPEN ') |
| Start an SPP service | dc_rpc_mainloop | CBLDCRSV('MAINLOOP') | |
| Request a remote service | dc_rpc_call | CBLDCRPC('CALL ') | |
| Invoke a remote service with a communication destination specified#1 | dc_roc_call_to | -- | |
| Receive processing result in asynchronous mode | dc_rpc_poll_any_replies | CBLDCRPC('POLLANYR') | |
| Acquire the descriptor of an asynchronous RPC request which has encountered an error | dc_rpc_get_ error_ descriptor |
CBLDCRPC('GETERDES') | |
| Reject the receiving of processing results | dc_rpc_discard_further_replies | CBLDCRPC('DISCARDF') | |
| Reject reception of selected processing results | dc_rpc_discard_specific_reply | CBLDCRPC('DISCARDS') | |
| Retry a service program | dc_rpc_ service_retry |
CBLDCRPC('SVRETRY') | |
| Set a schedule priority of service request | dc_rpc_set_ service_prio |
CBLDCRPC('SETSVPRI') | |
| Reference the schedule priority of service request | dc_rpc_get_ service_prio |
CBLDCRPC('GETSVPRI') | |
| Reference the service response waiting interval | dc_rpc_get_ watch_time |
CBLDCRPC('GETWATCH') | |
| Update the service response waiting interval | dc_rpc_set_ watch_time |
CBLDCRPC('SETWATCH') | |
| Acquire the node address of a client UAP | dc_rpc_get_ callers_address |
CBLDCRPC('GETCLADR') | |
| Acquire the node address of a gateway | dc_rpc_get_ gateway_address |
CBLDCRPC('GETGWADR') | |
| Report data to CUP unidirectionally | dc_rpc_cltsend | CBLDCRPC('CLTSEND ') | |
| Terminate a UAP | dc_rpc_close | CBLDCRPC('CLOSE ') | |
| Remote API facility | Establish a connection with a RAP-processing listener | dc_rap_connect | CBLDCRAP('CONNECT ') CBLDCRAP('CONNECTX') |
| Release a connection with a RAP-processing listener | dc_rap_ disconnect |
CBLDCRAP('DISCNCT ') | |
| Transaction control | Start a transaction | dc_trn_begin | CBLDCRPC('BEGIN ') |
| Enable commitment in chained mode | dc_trn_chained_commit | CBLDCRPC('C-COMMIT') | |
| Enable rollback in chained mode | dc_trn_chained_rollback | CBLDCRPC('C-ROLL ') | |
| Enable commitment in unchained mode | dc_trn_ unchained_ commit |
CBLDCRPC('U-COMMIT') | |
| Enable rollback in unchained mode | dc_trn_ unchained_ rollback |
CBLDCRPC('U-ROLL ') | |
| Report the information about the current transaction | dc_trn_info | CBLDCRPC('INFO ') | |
| System operation management | Execute operation command | dc_adm_call_ command |
CBLDCADM('COMMAND ') |
| Report completion of processing that starts a user server | dc_adm_complete | CBLDCADM('COMPLETE') | |
| Report the status of a user server | dc_adm_status | CBLDCADM('STATUS ') | |
| Output audit log | Output audit log | dc_log_audit_print |
CBLDCADT('PRINT ')
|
| Output message log | Output message log | dc_logprint | CBLDCLOG('PRINT ') |
| User journal acquisition | Acquire user journal | dc_jnl_ujput | CBLDCJNL('UJPUT ') |
| Journal data editing#2 | Close the jnlrput output file | -- | CBLDCJUP('CLOSERPT') |
| Open the jnlrput output file | -- | CBLDCJUP ('OPENRPT ') |
|
| Input journal data of the jnlrput output file | -- | CBLDCJUP('RDGETRPT') | |
| Performance verification trace | Acquire user-specific performance verification traces | dc_prf_utrace_ put |
CBLDCPRF('PRFPUT ') |
| Report the sequential number for an acquired performance verification trace | dc_prf_get_ trace_num |
CBLDCPRF('PRFGETN ') | |
| Real-time statistical information service | Acquire real-time statistical information for arbitrary section | dc_rts_utrace_put | CBLDCRTS('RTSPUT ') |
Table 1-2 OpenTP1 library functions (TP1/Message Control functions)
| Facility | Library function name | ||
|---|---|---|---|
| C language library | COBOL-UAP creation program | ||
| Message exchanging | Open the MCF environment | dc_mcf_open | CBLDCMCF('OPEN ') |
| Start an MHP service | dc_mcf_mainloop | CBLDCMCF('MAINLOOP') | |
| Receive a message | dc_mcf_receive | CBLDCMCF('RECEIVE') | |
| Send a response message | dc_mcf_reply | CBLDCMCF('REPLY ') | |
| Send a message | dc_mcf_send | CBLDCMCF('SEND ') | |
| Resend a message | dc_mcf_resend | CBLDCMCF('RESEND ') | |
| Receive a synchronous message | dc_mcf_recvsync | CBLDCMCF('RECVSYNC') | |
| Send a synchronous message | dc_mcf_sendsync | CBLDCMCF('SENDSYNC') | |
| Exchange a synchronous message | dc_mcf_sendrecv | CBLDCMCF('SENDRECV') | |
| Accept temporary-stored data | dc_mcf_tempget | CBLDCMCF('TEMPGET ') | |
| Update temporary-stored data | dc_mcf_tempput | CBLDCMCF('TEMPPUT ') | |
| Terminate continuous-inquiry-response processing | dc_mcf_contend | CBLDCMCF('CONTEND ') | |
| Activate an application program | dc_mcf_execap | CBLDCMCF('EXECAP ') | |
| Report the application information | dc_mcf_ap_info | CBLDCMCF('APINFO ') | |
| Report the application information to user exit routines | dc_mcf_ap_info_uoc | -- | |
| Set user timer monitoring | dc_mcf_timer_ set |
CBLDCMCF('TIMERSET') | |
| Cancel user timer monitoring | dc_mcf_timer_ cancel |
CBLDCMCF('TIMERCAN') | |
| Commit an MHP | dc_mcf_commit | CBLDCMCF('COMMIT ') | |
| Enable MHP rollback | dc_mcf_rollback | CBLDCMCF('ROLLBACK') | |
| Close the MCF environment | dc_mcf_close | CBLDCMCF('CLOSE ') | |
| Acquire the MCF communication service status | dc_mcf_tlscom |
CBLDCMCF('TLSCOM ')
|
|
| Acquire the connection status | dc_mcf_tlscn |
CBLDCMCF('TLSCN ')
|
|
| Establish a connection | dc_mcf_tactcn |
CBLDCMCF('TACTCN ')
|
|
| Release a connection | dc_mcf_tdctcn |
CBLDCMCF('TDCTCN ')
|
|
| Acquire the acceptance status for a server-type connection establishment request | dc_mcf_tlsln |
CBLDCMCF('TLSLN ')
|
|
| Start acceptance of server-type connection establishment requests | dc_mcf_tonln |
CBLDCMCF('TONLN ')
|
|
| Terminate acceptance of server-type connection establishment requests | dc_mcf_tofln |
CBLDCMCF('TOFLN ')
|
|
| Delete an application-related timer activation request | dc_mcf_adltap |
CBLDCMCF('ADLTAP ')
|
|
| Acquire the status of a logical terminal | dc_mcf_tlsle |
CBLDCMCF('TLSLE ')
|
|
| Shut down a logical terminal | dc_mcf_tdctle |
CBLDCMCF('TDCTLE ')
|
|
| Release a logical terminal from shutdown | dc_mcf_tactle |
CBLDCMCF('TACTLE ')
|
|
| Delete the output queue of a logical terminal | dc_mcf_tdlqle |
CBLDCMCF('TDLQLE ')
|
|
Table 1-3 OpenTP1 library functions (user data manipulation functions)
| Facility | Library function name | ||
|---|---|---|---|
| C language library | COBOL-UAP creation program | ||
| DAM file service | Open a logical file | dc_dam_open | CBLDCDAM('DCDAMSVC','OPEN') |
| Input a logical file block | dc_dam_read | CBLDCDAM('DCDAMSVC','READ') | |
| Update a logical file block | dc_dam_rewrite | CBLDCDAM('DCDAMSVC','REWT') | |
| Output a logical file block | dc_dam_write | CBLDCDAM('DCDAMSVC','WRIT') | |
| Close a logical file | dc_dam_close | CBLDCDAM('DCDAMSVC','CLOS') | |
| Shut down a logical file | dc_dam_hold | CBLDCDAM('DCDAMSVC','HOLD') | |
| Release a logical file from the shutdown state | dc_dam_release | CBLDCDAM('DCDAMSVC','RLES') | |
| Reference the status of a logical file | dc_dam_status | CBLDCDAM('DCDAMSVC','STAT') | |
| Start using an unrecoverable DAM file | dc_dam_start | CBLDCDAM('DCDAMSVC','STRT') | |
| Terminate using an unrecoverable DAM file | dc_dam_end | CBLDCDAM('DCDAMSVC','END ') | |
| Allocate a physical file | dc_dam_create | CBLDCDMB('DCDAMINT','CRAT') | |
| Open a physical file | dc_dam_iopen | CBLDCDMB('DCDAMINT','OPEN') | |
| Input a physical file block | dc_dam_get | CBLDCDMB('DCDAMINT','GET ') | |
| Output a physical file block | dc_dam_put | CBLDCDMB('DCDAMINT','PUT ') | |
| Seek a physical file block | dc_dam_bseek | CBLDCDMB('DCDAMINT','BSEK') | |
| Input directly a physical file block | dc_dam_dget | CBLDCDMB('DCDAMINT','DGET') | |
| Output directly a physical file block | dc_dam_dput | CBLDCDMB('DCDAMINT','DPUT') | |
| Close a physical file | dc_dam_iclose | CBLDCDMB('DCDAMINT','CLOS') | |
| TAM file service | Open a TAM table# | dc_tam_open | -- |
| Input a TAM table record | dc_tam_read | CBLDCTAM('FxxR')('FxxU')('VxxR')('VxxU') | |
| Update a TAM table record on the assumption of input | dc_tam_rewrite | CBLDCTAM ('MFY ')('MFYS') ('STR ')('WFY ') ('WFYS')('YTR ') |
|
| Update/add a TAM table record | dc_tam_write | ||
| Delete a TAM table record | dc_tam_delete | CBLDCTAM('ERS ') ('ERSR')('BRS ') ('BRSR') |
|
| Cancel the input of a TAM table record# | dc_tam_read_cancel | -- | |
| Acquire TAM table status | dc_tam_get_inf | CBLDCTAM('GST ') | |
| Acquire TAM table information | dc_tam_status | CBLDCTAM('INFO') | |
| Close a TAM table# | dc_tam_close | -- | |
| IST service | Open an internode shared table | dc_ist_open | CBLDCIST('DCISTSVC','OPEN') |
| Input an internode shared table record | dc_ist_read | CBLDCIST('DCISTSVC','READ') | |
| Output an internode shared table record | dc_ist_write | CBLDCIST('DCISTSVC','WRIT') | |
| Delete an internode shared table record | dc_ist_close | CBLDCIST('DCISTSVC','CLOS') | |
| Resource lock control | Enable locking of a resource | dc_lck_get | CBLDCLCK('GET ') |
| Release all resources from lock | dc_lck_release_all | CBLDCLCK('RELALL ') | |
| Release the resource from lock specified by name | dc_lck_release_byname | CBLDCLCK('RELNAME ') | |
Table 1-4 OpenTP1 library functions (X/Open-compatible functions)
| Facility | Library function name | ||
|---|---|---|---|
| C language library | COBOL-UAP creation program | ||
| XATMI interface | Send a service request and synchronously await its reply | tpcall() | TPCALL |
| Send a service request | tpacall() | TPACALL | |
| Get a reply from a previous service request | tpgetrply() | TPGETRPLY | |
| Cancel a call descriptor for an outstanding reply | tpcancel() | TPCANCEL | |
| Establish a conversational service connection | tpconnect() | TPCONNECT | |
| Terminate a conversational service connection abortively | tpdiscon() | TPDISCON | |
| Receive a message in a conversational connection | tprecv() | TPRECV | |
| Send a message in a conversational connection | tpsend() | TPSEND | |
| Allocate a typed buffer | tpalloc() | -- | |
| Free a typed buffer | tpfree() | -- | |
| Change the size of a typed buffer | tprealloc() | -- | |
| Determine information about a typed buffer | tptypes() | -- | |
| Advertise a service name | tpadvertise() | TPADVERTISE | |
| Unadvertise a service name | tpunadvertise() | TPUNADVERTISE | |
| Template for service routines | tpservice() | TPSVCSTART | |
| Return from a service routine | tpreturn() | TPRETURN | |
| TX interface | Begin a global a transaction | tx_begin() | TXBEGIN |
| Commit a global transaction | tx_commit() | TXCOMMIT | |
| Return global transaction information | tx_info() | TXINFORM | |
| Open a set of resource managers | tx_open() | TXOPEN | |
| Roll back a global transaction | tx_rollback() | TXROLLBACK | |
| Close a set of resource managers | tx_close() | TXCLOSE | |
| Set commit_return characteristic | tx_set_commit_ return() |
TXSETCOMMITRET | |
| Set transaction_ control characteristic |
tx_set_ transaction_ control() |
TXSETTRANCTL | |
| Set transaction_ timeout characteristic |
tx_set_ transaction_ timeout0 |
TXSETTIMEOUT | |
Table 1-5 OpenTP1 library functions (functions used in special style)
| Facility | Library function name | ||
|---|---|---|---|
| C language library | COBOL-UAP creation program | ||
| Multinode facility# | Start acquiring the status of OpenTP1 node | dc_adm_get_nd_ status_begin |
-- |
| Acquire the status of OpenTP1 node | dc_adm_get_nd_ status_next |
-- | |
| Acquire the status of a specified OpenTP1 node | dc_adm_get_nd_ status |
-- | |
| Terminate acquiring the status of OpenTP1 node | dc_adm_get_nd_ status_done |
-- | |
| Start acquiring a node identifiers | dc_adm_get_ nodeconf_begin |
-- | |
| Acquire a node identifier | dc_adm_get_ nodeconf_next |
-- | |
| Terminate acquiring a node identifiers | dc_adm_get_ nodeconf_done |
-- | |
| Acquire the node identifier of the local node | dc_adm_get_node_ id |
-- | |
| Start acquiring the status of user server | dc_adm_get_sv_ status_begin |
-- | |
| Acquire the status of user server | dc_adm_get_sv_ status_next |
-- | |
| Acquire the status of a specified user server | dc_adm_get_sv_ status |
-- | |
| Terminate acquiring the status of user server | dc_adm_get_sv_ status_done |
-- | |
| Online tester management | Report the test status of a user server | dc_uto_test_ status |
CBLDCUTO ('T-STATUS') |
Tables 1-6 to 1-10 list the library functions available to OpenTP1 UAPs. The UAPs that can use the listed library functions are SUPs, SPPs, MHPs, and UAPs that handle offline work.
Table 1-6 Library functions available with UAPs (basic OpenTP1 facilities)
| OpenTP1 library function name | SUP | SPP | MHP | Off- line | ||||
|---|---|---|---|---|---|---|---|---|
| Out | In | Out | Transaction range |
Out | In | |||
| Rt | N-Rt | |||||||
| dc_rpc_open | Y | N | O | N | N | O | N | N |
| dc_rpc_mainloop | N | N | O | N | N | N | N | N |
| dc_rpc_call | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_call_to | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_poll_any_replies | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_get_error_descriptor | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_discard_further_replies | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_discard_specific_reply | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_service_retry | N | N | Y | N | N | Y | N | N |
| dc_rpc_set_service_prio | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_get_service_prio | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_get_watch_time | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_set_watch_time | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_get_callers_address | N | N | Y | Y | Y | N | N | N |
| dc_rpc_get_gateway_address | N | N | Y | Y | Y | N | N | N |
| dc_rpc_cltsend | Y | Y | Y | Y | Y | Y | Y | N |
| dc_rpc_close | Y | N | O | N | N | O | Y | N |
| dc_rap_connect | Y | N | Y | N | N | Y | N | N |
| dc_rap_disconnect | Y | N | Y | N | N | Y | N | N |
| dc_trn_begin# | Y | N | Y | N | N | O | N | N |
| dc_trn_chained_commit# | N | Y | N | Y | N | N | N | N |
| dc_trn_chained_rollback# | N | Y | N | Y | N | N | N | N |
| dc_trn_unchained_commit# | N | Y | N | Y | N | N | O | N |
| dc_trn_unchained_rollback# | N | Y | N | Y | Y | N | O | N |
| dc_trn_info | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_call_command | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_complete | Y | N | N | N | N | N | N | N |
| dc_adm_status | Y | Y | Y | Y | Y | Y | Y | N |
| dc_log_audit_print | Y | Y | Y | Y | Y | Y | Y | N |
| dc_logprint | Y | Y | Y | Y | Y | Y | Y | N |
| dc_jnl_ujput# | N | Y | N | Y | Y | N | Y | N |
| CBLDCJUP('CLOSERPT') | N | N | N | N | N | N | N | Y |
| CBLDCJUP('OPENRPT ') | N | N | N | N | N | N | N | Y |
| CBLDCJUP('RDGETRPT') | N | N | N | N | N | N | N | Y |
| dc_prf_utrace_put | Y | Y | Y | Y | Y | Y | Y | Y |
| dc_prf_trace_num | Y | Y | Y | Y | Y | Y | Y | Y |
| dc_rts_utrace_put | Y | Y | Y | Y | Y | Y | Y | N |
Table 1-7 Library functions available with UAPs (TP1/Message Control functions)
| OpenTP1 library function name |
SUP | SPP | MHP | Off- line | ||||
|---|---|---|---|---|---|---|---|---|
| Out | In | Out | Transaction range |
Out | In | |||
| Rt | N-Rt | |||||||
| dc_mcf_open | -- | -- | M | -- | -- | M | M | -- |
| dc_mcf_mainloop | -- | -- | -- | -- | -- | M | -- | -- |
| dc_mcf_receive | -- | -- | -- | -- | -- | N | Y | -- |
| dc_mcf_reply | -- | -- | -- | -- | -- | N | Y | -- |
| dc_mcf_send | -- | -- | -- | Y | Y | N | Y | -- |
| dc_mcf_resend | -- | -- | -- | Y | Y | -- | Y | -- |
| dc_mcf_recvsync | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_sendsync | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_sendrecv | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tempget | -- | -- | -- | -- | -- | N | Y | -- |
| dc_mcf_tempput | -- | -- | -- | -- | -- | N | Y | -- |
| dc_mcf_contend | -- | -- | -- | -- | -- | N | Y | -- |
| dc_mcf_execap | -- | -- | -- | Y | Y | N | Y | -- |
| dc_mcf_ap_info | -- | -- | -- | -- | -- | N | Y | -- |
| dc_mcf_ap_info_uoc | -- | -- | -- | -- | -- | N | Y | -- |
| dc_mcf_timer_set | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_timer_cancel | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_commit | -- | -- | -- | -- | -- | -- | Y | -- |
| dc_mcf_rollback | -- | -- | -- | -- | -- | -- | Y | -- |
| dc_mcf_close | -- | -- | M | -- | -- | M | M | -- |
| dc_mcf_tlscom | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tlscn | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tactcn | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tdctcn | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tlsln | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tonln | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tofln | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_adltap | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tlsle | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tdctle | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tactle | -- | -- | Y | Y | Y | Y | Y | -- |
| dc_mcf_tdlqle | -- | -- | Y | Y | Y | Y | Y | -- |
Table 1-8 Library functions available with UAPs (operate user data)
| OpenTP1 library function name |
SUP | SPP | MHP | Off- line | ||||
|---|---|---|---|---|---|---|---|---|
| Out | In | Out | Transaction range |
Out | In | |||
| Rt | N-Rt | |||||||
| dc_dam_open# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_dam_read# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_dam_rewrite# | (Y) | Y | (Y) | Y | Y | (Y) | Y | N |
| dc_dam_write# | (Y) | Y | (Y) | Y | Y | (Y) | Y | N |
| dc_dam_close# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_dam_hold | N | Y | N | Y | Y | N | Y | N |
| dc_dam_release | Y | Y | Y | Y | Y | N | Y | N |
| dc_dam_status | Y | Y | Y | Y | Y | Y | Y | N |
| dc_dam_start | Y | Y | Y | Y | Y | Y | Y | N |
| dc_dam_end | Y | Y | Y | Y | Y | Y | Y | N |
| dc_dam_create | N | N | N | N | N | N | N | Y |
| dc_dam_iopen | N | N | N | N | N | N | N | Y |
| dc_dam_get | N | N | N | N | N | N | N | Y |
| dc_dam_put | N | N | N | N | N | N | N | Y |
| dc_dam_bseek | N | N | N | N | N | N | N | Y |
| dc_dam_dget | N | N | N | N | N | N | N | Y |
| dc_dam_dput | N | N | N | N | N | N | N | Y |
| dc_dam_iclose | N | N | N | N | N | N | N | Y |
| dc_tam_open | Y | Y | Y | Y | Y | Y | Y | N |
| dc_tam_read | N | Y | N | Y | Y | N | Y | N |
| dc_tam_rewrite | N | Y | N | Y | Y | N | Y | N |
| dc_tam_write | N | Y | N | Y | Y | N | Y | N |
| dc_tam_delete | N | Y | N | Y | Y | N | Y | N |
| dc_tam_read_cancel | N | Y | N | Y | Y | N | Y | N |
| dc_tam_get_inf | Y | Y | Y | Y | Y | Y | Y | N |
| dc_tam_status | Y | Y | Y | Y | Y | Y | Y | N |
| dc_tam_close | Y | Y | Y | Y | Y | Y | Y | N |
| dc_ist_open | Y | Y | Y | Y | Y | Y | Y | N |
| dc_ist_read | Y | Y | Y | Y | Y | Y | Y | N |
| dc_ist_write | Y | Y | Y | Y | Y | Y | Y | N |
| dc_ist_close | Y | Y | Y | Y | Y | Y | Y | N |
| dc_lck_get# | N | Y | N | Y | Y | N | Y | N |
| dc_lck_release_all# | N | Y | N | Y | Y | N | Y | N |
| dc_lck_release_byname# | N | Y | N | Y | Y | N | Y | N |
Table 1-9 Library functions available with UAPs (X/Open-compatible functions)
| OpenTP1 library function name |
SUP | SPP | MHP | Off- line | ||||
|---|---|---|---|---|---|---|---|---|
| Out | In | Out | Transaction range |
Out | In | |||
| Rt | N-Rt | |||||||
| tpcall | Y | Y | Y | Y | Y | N | N | N |
| tpacall | Y | Y | Y | Y | Y | N | N | N |
| tpgetrply | Y | Y | Y | Y | Y | N | N | N |
| tpcancel | Y | Y | Y | Y | Y | N | N | N |
| tpconnect | Y | Y | Y | Y | Y | N | N | N |
| tpdiscon | Y | Y | Y | Y | Y | N | N | N |
| tprecv | Y | Y | Y | Y | Y | N | N | N |
| tpsend | Y | Y | Y | Y | Y | N | N | N |
| tpalloc | Y | Y | Y | Y | Y | N | N | N |
| tpfree | Y | Y | Y | Y | Y | N | N | N |
| tprealloc | Y | Y | Y | Y | Y | N | N | N |
| tptypes | Y | Y | Y | Y | Y | N | N | N |
| tpadvertise | N | N | Y#3 | Y#3 | Y#3 | N | N | N |
| tpunadvertise | N | N | Y#3 | Y#3 | Y#3 | N | N | N |
| tpservice#1 | N | N | N | N | N | N | N | N |
| tpreturn | N | N | Y#4 | Y#4 | Y#4 | N | N | N |
| tx_begin#2 | Y | Y | Y | N | N | Y | N | N |
| tx_commit with TX_CHAINED#2 | N | Y | Y | N | N | N | N | N |
| tx_commit with TX_UNCHAINED#2 | N | Y | Y | N | N | N | N | N |
| tx_info | Y | Y | Y | Y | Y | N | N | N |
| tx_open | Y | N | Y | N | N | N | N | N |
| tx_rollback with TX_CHAINED#2 | N | Y | N | Y | N | N | N | N |
| tx_rollback with TX_UNCHAINED#2 | N | Y | N | Y | Y | N | N | N |
| tx_close | Y | N | Y | N | N | N | N | N |
| tx_set_commit_return#2 | Y | Y | Y | Y | Y | N | N | N |
| tx_set_transaction_control#2 | Y | Y | Y | Y | Y | N | N | N |
| tx_set_transaction_timeout#2 | Y | Y | Y | Y | Y | N | N | N |
Table 1-10 Library functions available with UAPs (functions used in special style)
| OpenTP1 library function name |
SUP | SPP | MHP | Off- line | ||||
|---|---|---|---|---|---|---|---|---|
| Out | In | Out | Transaction range |
Out | In | |||
| Rt | N-Rt | |||||||
| dc_adm_get_nd_status_begin# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_nd_status_next# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_nd_status# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_nd_status_done# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_nodeconf_begin# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_nodeconf_next# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_nodeconf_done# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_node_id# | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_sv_status_begin | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_sv_status_next | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_sv_status | Y | Y | Y | Y | Y | Y | Y | N |
| dc_adm_get_sv_status_done | Y | Y | Y | Y | Y | Y | Y | N |
| dc_uto_test_status | Y | Y | Y | Y | Y | Y | Y | N |
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.