I need to store hex into the metadata. However, for some reason some hex values are not being stored properly. It works for some but not for others. For example, below the ODBHOSTID in the userdata is missing the ending brace eventually causing a tcl error.
Does anybody know why? Do I need to convert the hex to decimal before storing in the metadata?
tcl>set mh [msgcreate]
message0
tcl>set hex x00
tcl>keylset userdata ODBHOSTID $hex
tcl>msgmetaset $mh USERDATA $userdata
tcl>msgdump $mh
msg: 0x3000003c
msgType : DATA
msgClass : ENGINE
msgState : Unknown: 0 (0)
msgPriority : 5120
msgRecoveryDbState: 1
msgFlags : 0x2
msgMid : [0.0.0]
msgSrcMid : midNULL
msgSrcMidGroup : midNULL
msgOrigSrcThread :
msgOrigDestThread :
msgSrcThread :
msgDestThread :
msgXlateThread :
msgSkipXlate : 0
msgSepChars :
msgNumRetries : 0
msgGroupId : 0
msgDriverControl :
msgRecordFormat :
msgRoutes :
msgUserData : {ODBHOSTID
msgStaticIsDirty : 0
msgVariableIsDirty: 1
msgTimeStartIb : 1199813173.003
msgTimeStartOb : 1199813173.003
msgTimeCurQueStart: 0.000
msgTimeTotalQue : 0.000
msgTimeRecovery : 1199813173.003
msgEoConfig : 0x0
msgData (BO) : 0x30000120
message : ”