Former: Cloverleaf 5.6; AIX 5.3
Our SMAT Archive script (used with CL5.6 for years) converts our inbound EBCDIC .msg files to ASCII. As it reads each message, it performs the following code to convert the message. However, in Cloverleaf 6.0 this code is failing with a strange and “unhelpful” error. Can anyone tell me what is going wrong?
In the thread config we used the new option of “binary” encoding. But everything else with the thread configuration is the same as it was in 5.6. We still use hcitpstblconvert to convert the inbound message from EBCDIC to ASCII and that works fine. So, I’m confused why it would fail when converting a single message as its building the archive file from the SMAT file?
proc convert { msg } {
variable mape2a ;# The map table
adddatamap hci_e2a $mape2a ;# Make sure its added
set mh [msgcreate] ;# Create engine msg handle
msgset $mh $msg ;# Store EBCDIC data to handle
msgmapdata $mh map_e2a ;# Do conversion`
set rtnMsg [msgget $mh] ;# get converted message
msgdestroy $mh ;# Cleanup message handle
return $rtnMsg ;# Return converted message
}
$ smatarchive txa8do__i
/hci/cis6.0/integrator/usercmds/smatarchive – Getting process name for Thread txa8do__i …..
ROOT: /hci/cis6.0/integrator SITE: trh_inv_test PROCESS: txa8do__i
Cycle and archive txa8do__i.msg
Error msg sequence error (max?)
while executing
“msgmapdata $mh map_e2a ”
(procedure “convert” line 7)
invoked from within
“convert $data”
(procedure “smt::readSMAT” line 99)
invoked from within
“smt::readSMAT”
(procedure “main” line 109)
invoked from within
“main [llength $argv] $argv”
(file “/hci/cis6.0/integrator/usercmds/smatarchive” line 870)