IBM DB2 UDB 11.x is supported in PowerServer 2022 R2.
For the first time to connect to the DB2 database, you will need to install the corresponding .NET Core driver (IBM.Data.DB2.Core 3.1.0.600). You can choose to have PowerBuilder IDE automatically download and install the driver from www.nuget.org or manually download the driver from NuGet and then specify the location of driver on the development PC.
For more information, refer to Creating a cache for the DB2 database.