In RPGIV, handling CCSID conversions is “stupid easy”.
DCL-s dataE varchar(256) Inz(‘Hello World’);
DCL-s dataA varchar(256) CCSID(1208);
dataA = dataE;
Now, the dataA variable contains the ASCII (UTF-8) encoded characters for ‘Hello World’.
You almos…lnkd.in/gr4ApP5q
– SQL iQuery for #IBMi (aka Q38) (@sqliquery)07:04 – Jan 24, 2023