Do you mean to say that your string contains hexadecimal pairs of numeric ASCII codes? Or decimal triplets perhaps?
You would have to start with splitting up the string into individual pairs (or triplets). The easiest approach is with -REPEAT ... WHILE ...
Within the loop you can decode the ASCII code to a character and concatenate it to a string.
An alternative approach is to us a TABLE request with an enumeration based on a COMPUTE with LAST. For that to work, you need to "generate" records into your source table so that the number of rows matches the number of ASCII codes in your input string. The usual approach to that is to JOIN the table against a sequence of the correct length - MacGyver does the trick.
For decoding the ASCII character, you'll have to cut a substring out of the input string based on that enumeration and the ASCII code length and then you can decode it.
Concatenate the result of the above to another field using LAST again. Finally, only retrieve the final record of that TABLE.
That gets complicated, doesn't it?
Or... you can perform the decoding in PASSTHRU SQL, using a recursive CTE if your RDBMS supports those.
In case you're using PostgreSQL, you could also use the convenient generate_series() function to create a table of sorts. Then you do the conversion per row per ASCII code and aggregate the whole thing together again with another function.
The approach here is actually quite similar to the FOCUS approach, but a little less difficult to implement.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :