Command iso8583.endmessage

The command iso8583.endmessage is used to finish the ISO8583 message being mounted.

In the example above, after starting the ISO8583 message through the command iso8583.initmessage and inserting the fields through the command iso8583.putfield according to the bitmap (bitmap.dat), the command iso8583.endmessage will be responsible for finishing the message, storing the message size in the variable iSizeMessageISO and also storing the complete message on the variable sMsgIso8583.

Parameters

  1. variablesize [integer]
    Variable that will store the size of the message.
  2. variablereturn [integer]
    Variable that will store the return code, where:
    • 0: message successfully finished
    • -802: function error
    • -803: buffer overrun

Example

To visualize the data stored on the variable sMsgIso8583, the command print was used, where the command print receives the message as a parameter, letting the device print it. Now it is possible to begin the transaction through the command iso8583.transactmessage.

To view the data stored in the variable sMsgIso8583, the command print was added, passing as a parameter the ISO8583 message, to get the message printed. Now it's possible to start the transaction with the command iso8583.transactmessage.