I am trying to convert a string from EBCDIC to ASCII however I have found out the hard way that the encoding function is not available in TCL / iRules on F5. I have been researching how to possibly achieve this in an alternate way however I have hit a blank. Anyone got any ideas how I can achieve this? I am running 13.1.1.5.
Thank you for the reply. Your suggestion of using a string map is something I thought about but was hoping there maybe a better way. I did read somewhere that iRulesLX can do it but I’ll be honest to say that I would not know where to start with that.
I have the same issue. I’ve tried the string list / string map approach both with a list declaration AND programatically and I can’t get past the LTM validation.
The declaration approach and code approach both work fine in a local TCL shell, but blow up the LTM validation step.
Get this: the string list declaration version even blows up the validation step WHEN IT’S COMMENTED OUT.
Error is always the same, regardless of declaration or programmatic version:
01070151:3: Rule [/Common/ISO8583-EXTRACT] error: /Common/ISO8583-EXTRACT:75: error: [braces are required around the expression][proc getEbcdicMap {} {
Surely someone has gotten past this before. But HOW?