Previous Topic Next topic Print topic


EBCDIC Support in CodeWatch

CodeWatch interprets character data as EBCDIC when the current debuggable module is compiled with the -ebcdic compiler option. Note that all character data which is input or displayed is always in human readable format (ASCII), and is converted to and from EBCDIC internally for that purpose.

For example, for a debuggable module compiler using the -ebcdic compiler option with a declaration dcl s char(4), using the debugger command Let s = 'abc '; the following table shows debugger commands and character results.

dcl s char(4)
Eval s s = 'abc ' {character(4)} displays
Eval /h s s = 81 82 82 40 (hex) {character (4)} displays
Eval trim(s) 'abc' {character(3)} displays
Eval /h trim(s) 81 82 83 (hex) {character (3)}
Eval 'abc'A /.. {character (3)} displays. 0x616263 displays as readable characters. 0x61 is a slash (/. 0x61 and 0x62 are non-printable.
Eval /h 'abc'A 61 62 63 (hex) {character (3)} displays
Previous Topic Next topic Print topic