Coding in RPG (IBM i/AS400). Using UTF8 character strings.

Опубликовано: 10 Июнь 2026
на канале: Christian Larsen
1,798
40

In this video, I’d like to talk about how you can use UTF8 (Unicode) strings in RPG. Not only how you can define tables using SQL, with fields containing information with that CCSID, but also using them in RPG.
As you know from 7.2 we can define character strings with a concrete CCSID. I show you an example of how you can use them.

Enjoy!

#ibmi #ibm #rpg #rpgle #rpgfree #newvideo #ibmtraining #ibmcoding #rpgtraining #sqlrpgle #sqltraining #as400 #common #modernize #IBMChampion

0:00 Introduction
0:38 Creating a table for storing characters in Unicode (UTF8)
3:24 Inserting data encoded in different CCSID into the table
5:07 Creating a new program in RPG for showing you how to use fields defined with CCSID
7:25 Example converting character fields between different CCSIDs in RPG
8:10 Retrieving the information from the table using SQL into a variable with CCSID UTF8
9:56 Creating a file in the IFS and inserting the information retrieved from the table into it using SQL
10:47 Compiling, and testing the program
11:30 Final comments and ending