Eigentlich ganz einfach:

dcl-ds;
NumWert uint(3); // ergibt 1 Byte
CharWert char(1) pos(1);
end-ds;

NumWert = 204;
if CharWert = x'CC';
endif;

Umgedreht ists komplizierter.