Error handling

Apart from communication errors caused externally, the most likely error you might get is due to bad command sequencing. That is, you have issued a FEPI RECEIVE command when a FEPI SEND command is expected.

A FEPI RECEIVE command must not follow a FEPI SEND command without attention, or a FEPI RECEIVE command that indicated ‘change direction’.

Another likely error is ‘previous SEND failed’. This might be an external communication error, or the back-end system might have responded negatively—as IMS does, for example, if you try to run an unknown transaction. The sense data which you can get using FEPI EXTRACT CONV tells you which error it is, and, where the back-end system has responded negatively, you issue another FEPI RECEIVE command to get the data.