Imported from previous forum
HI All
I have doubt in calculation of Body Length. Pls tell me whether i am right.
- When i am calculating the Body length should i consider the delimiters (SOH char)?
- What abt the body length’s length should i consider that also?
thanx in Advance
Prasad
[ original email was from John Prewett - jprewett@lavatrading.com ]
Hi Prasad,
In order to answer this and many other questions that will probably arise, may I suggest that you read the comprehensive documentation that accompanies each version of FIX. You will find it is fairly easy to read and covers a wide variety of issues which you will encounter.
Your questions themselves are answered near the start of Chapter 2 of the most recent FIX.4.4 documentation as follows:
--- quote from documentation ---
Data Integrity:
The integrity of message data content can be verified in two ways: verification of message length and a simple checksum of characters.
The message length is indicated in the BodyLength field and is verified by counting the number of characters in the message following the BodyLength field up to, and including, the delimiter immediately preceding the CheckSum tag (“10=”).
The CheckSum integrity check is calculated by summing the binary value of each character from the “8” of “8=“ up to and including the <SOH> character immediately preceding the CheckSum tag field and comparing the least significant eight bits of the calculated value to the CheckSum value (see “CheckSum Calculation” for a complete description).
--- end of quote from documentation ---
> HI All
> I have doubt in calculation of Body Length. Pls tell me whether i am right.
> 1. When i am calculating the Body length should i consider the delimiters (SOH char)?
> 2. What abt the body length’s length should i consider that also?
>
>
> thanx in Advance
> Prasad
>
>