Previous Topic: &ZAPPCTYP

Next Topic: &ZAPPCWRI

&ZAPPCWR

Returns a character string, equivalent to that of the LU6.2 WHAT_RECEIVED parameter.

&ZAPPCWR returns a character string, equivalent to that of the LU6.2 WHAT_RECEIVED parameter, containing one of the following indicators:

ZERO

Nothing received

DATA_COMPLETE

Data received complete

DATA_TRUNCATED

Data was truncated

DATA_INCOMPLETE

Data was incomplete

FMH_DATA_COMPLETE

Data complete

FMH_DATA_TRUNCATED

FMH data truncated

FMH_DATA_INCOMPLETE

FMH data incomplete

SEND

send state

CONFIRM

confirm state

CONFIRM_SEND

confirm_send state

CONFIRM_DEALLOCATE

confirm_deallocate state

DEALLOCATE

deallocate state

This system variable is set following an &APPC RECEIVE_AND_WAIT or &APPC RECEIVE_IMMEDIATE request and indicates the type of data returned by the request.

A value of DATA_COMPLETE indicates that data was returned in the variables supplied.

A value of DATA_TRUNCATED or DATA_INCOMPLETE indicates that data was returned but an error has occurred that caused the data to be truncated.

A value of SEND indicates that no data was returned, but that the remote conversation partner has entered receive state, so the local conversation has entered send state.

A value of CONFIRM, CONFIRM_SEND, or CONFIRM_DEALLOCATE indicates that no data was returned, but that the local conversation should issue an &APPC CONFIRMED request, following which receive, send, or deallocate state is entered respectively.

A value of DEALLOCATE indicates that no data was returned, but that the remote conversation partner issued a DEALLOCATE TYPE=FLUSH, and the local conversation should issue an &APPC DEALLOCATE TYPE=LOCAL to free all conversation resources.

Example: &ZAPPCWR

&IF &ZAPPCWR = CONFIRM &THEN +
    &GOSUB .CONF