Previous Topic: Understanding Conversation StatesNext Topic: Conversation States in a Successful Data Transfer


Conversation States

Statements and Conversation States

The following table summarizes, for each communication command, the states in which the command can be issued and the resulting state after the command is executed.

To issue this command

The dialog must be in this state

After this return code

The dialog is in this state

ALLOCATE

Reset

OK

Send

 

 

Other

Reset

CONFIRM

Send

OK

Send

 

 

PROG-ERROR

Receive

 

 

Other

Deallocate

CONFIRMED

ConfirmR

OK

Receive

 

 

Other

Deallocate

 

ConfirmS

OK

Send

 

 

Other

Deallocate

 

ConfirmD

Any

Deallocate

CONTROL

Receive

OK

Receive

SESSION

 

Other

Deallocate

DEALLOCATE

 

 

 

FLUSH

Send

Any

Reset

CONFIRM

Send

OK

Reset

 

 

PROG-ERROR

Receive

 

 

Other

Reset

ABEND

Any

Any

Reset

LOCAL

Deallocate

Any

Reset

PREPARE-TO- RECEIVE

Send

OK or PROG-ERROR

Receive

 

 

Other

Deallocate

RECEIVE-AND-

Send or receive

OK, Data complete

Receive

WAIT

 

OK, Send

Send

 

 

PROG-ERROR

Receive

 

 

Other

Deallocate

 

 

OK, CONFIRM

ConfirmR

 

 

OK, CONFIRM-SEND

ConfirmS

 

 

OK, CONFIRM-

 

 

 

DEALLOCATE

ConfirmD

REQUEST-TO-

Receive

OK

Receive

SEND

 

Other

Deallocate

SEND-DATA

Send

OK

Send

 

 

PROG-ERROR

Receive

 

 

Other

Deallocate

SEND-ERROR

Send or Receive

OK

Send

 

 

PROG-ERROR

Receive

 

 

Other

Deallocate

 

ConfirmR

OK

Send

 

ConfirmS

PROG-ERROR

N/A

 

ConfirmD

Other

Deallocate