Originally posted by Paul Glezen
Last month I asked about a Tcl proc, hcitbllookup, that I found referenced in code I inherited from a retiree but could not locate in the documentation. I was informed that this was the same as the tbllookup function, which I did indeed find documented.
I seem to have a similar issue. One of my outbound threads yielded the following error message during a test.
[pd :pdtd:ERR /0: ims_ob:04/13/2016 13:25:54] Tcl error:
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] msgId = message1
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] proc = 'hcitpstblconvert'
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] args = '{TABLENAME ibmtext_a2e}'
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] result = ''
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] errorInfo: '
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] Error msg sequence error (max?)
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] while executing
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] "msgmapdata $mh $tblname"
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] invoked from within
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] "if [keylget args MSGID mh] {
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] set uarg [keylget args ARGS] ;# user args
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] set tblname [keylget uarg TABLENAME] ;# conversion table
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--]
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] ms..."
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] (procedure "hcitpstblconvert" line 10)
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] invoked from within
[pd :pdtd:ERR /0: ims_ob:--/--/---- --:--:--] "hcitpstblconvert {MSGID message1} {CONTEXT prewrite} {ARGS {{TABLENAME ibmtext_a2e}}} {MODE run} {VERSION 3.0}"'
The string "Error msg sequence error (max?)" seems to imply an index which exceeds the size of the table was passed to this function.
When I inspect the thread in Network Configurator, I do see that the Outbound tab's Prewrite Procs field contains the name hcitpstblconvert. The supplied args are {TABLENAME ibmtext_a2e}. Ostensibly, this is an ASCII to EBCDIC conversion utility since the target is a mainframe CICS server listening on TCP.
Remembering my lesson from my previous inquiry, I searched the API docs for tsptblconvert. But I could not find that either. The closest I could find was tspconvert; but that didn't seem to be the same thing.
I also couldn't find a table named ibmtext_a2e in my list of tables. I grep'ed all over the place and found the table created with the adddatamap function in
/tcl/lib/cloverleaf/hciStart.tlib
But I'm still at a loss to where the hcitpstblconvert command comes from. Is it a deprecated Cloverleaf Tcl extension?