|
It
is a check digit. We use it here but I cannot post the code for
calculating the XOR check sum. LRC stands for Longitude Redundancy
Check. Hint, check out the "C" math functions for using XOR and step thru
the string. LRC includes the character immediately following the STX,
X'02', up thru and including the ETX, X'03'. It is placed immediately
following the EXT. It is best to translate your string to ASCII prior to
adding the STX,ETX,LRC.
EB:AS XLATE
RESP ASRESP
EVAL DATAOUT = STX + %TRIMR(ASRESP) + ETX
EVAL LRC = $LCR(DATAOUT)
EVAL DATAOUT = %TRIMR(DATAOUT) + LRC
Christopher K. Bipes mailto:ChrisB@Cross-Check.com
If consistency is the hobgoblin of little minds, only geniuses work here. Karen Herbelin - Readers Digest 3/2000
|
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.