Skip to main content
if you’re new to IBMi/AS400 or don’t currently have a system to use, this section will guide you through setting a test environment using the PUB400.com service.

What is IBMi/AS400 ?

IBMi/AS400 (now commonly referred to as IBMi on Power Systems) is a midrange computer platform developed by IBM. Originally introduced in 1988 as the AS/400 (Application System/400), it was designed for business applications, especially in industries like finance, manufacturing, and retail. The system runs on the IBMi operating system, which is known for its stability, security, and integrated database (DB2). It supports both traditional RPG and COBOL applications as well as modern development using Java, PHP, and SQL. Although the hardware and name have evolved over the years (from AS/400 to iSeries to System i and now IBM Power Systems running IBMi), many organizations still refer to it as AS/400 due to its long legacy. It’s therefore an entirely different platform than traditional PC computers. It’s still used widely to this day in many sectors.

What is PUB400 ?

PUB400.com is a public, free IBMi (formerly AS/400) server you can use to learn, experiment, and develop. It’s basically a playground for IBMi: a system running IBMi version 7.5, made accessible to the community so people can try out IBMi tools, write programs (RPG, COBOL, CL, SQL, etc.), use open‑source/modern tooling, and generally build skills.

1. PUB400.com sign-up & connection test

Opening a free account is really easy, head to sign-up page and fill up this form : image You’ll receive a first email to confirm your email address, and then, another one to give you more details on how to use your new test system. IBMi/AS400 systems often requires you to go through a dedicated tn5250 terminal emulator. For our use cases, you’ll need the terminal to enable journaling on your source tables. We recommend you to use a JAVA-based multi-platform terminal tn5250j Make sure JAVA is installed, simply download the zip distribution and unzip it to your install folder. Run the command java -jar ./tn5250j.jar and configure your connection to pub400.com. The logon window looks like this : image On first login, your password will need to be changed, use [TAB] to move for one field to another. On the welcome page, try running the command DSPLIBL to display the list of libraries/schemas. image Now the result will look like this image That’s great, it means that PUB400 has already created a sample schema called ${YOUR_USERNAME}1

2. SQL connection

IBMi has an embedded DB2 SQL database tightly coupled with the system. Tables are files and vice versa. That’s why, there’s no need to install a SQL server.

Query test

Now, try to connect to our library by using an ordinary JDBC-based SQL client. In this example, connection string is simply jdbc:as400://pub400.COM;libraries={YOUR_USERNAME}1. Here’s a screenshot of DBeaver image

Build schema

Time to build our first test database. This database will be used later on to do replication tests with Snowflake. Run the following creation script :

Fill up the database

Now let’s insert simulated data :

What’s next ?

Well done, you’ve just created a functional IBMi test environment. Both SQL and command line are functional. From there, it’s straightforward to develop basic queries and applications with JDBC for instance. A lot of valuable information can be found on PUB400.COM to help you dive deeper into the command line. In our next step, we will use the terminal to configure our source tables with journaling enabled.