Previous Topic: DBCVTPR Macro Startup WarningNext Topic: DBAS Transaction to Test Multiple Environment Control Commands


Batch Execution for CONNECT, DISCONNECT, and IMMEDIATE of MUFs

Use the following commands in a batch or online application to perform the equivalent of the online commands CONNECT, DISCONNECT, and IMMEDIATE.

Datacom/DB request nnDBOC CONNECT=nn
LINK PROGRAM('DCCOCPR') COMMAREA(‘DBLC CONNECT=nn’)
XCTL PROGRAM('DCCOCPR') COMMAREA(‘DBOC DISCONNECT=nn’) 
START TRANS TD('DBOC') FROM(‘DBOC IMMEDIATE=nn’)

You can also issue the following commands as console commands:

DBOC CONNECT=nn
DBOC DISCONNECT=nn
DBOC IMMEDIATE=nn
DBEC PERFORM CONNECT/DISCONNECT/IMMEDIATE commands in local or remote mode

Note: For DBEC responses, the results are logged to the DBOCPRT file on which the action was performed.